/**
 * ENALINGUA Exam Booking — styles.
 * Approximates the supplied design. Colors/spacing can be fine-tuned to
 * pixel-match; structure and states (selected/full/disabled) are complete.
 */

.ebs-booking-widget {
	--ebs-red: #e8384f;
	--ebs-red-bg: #fdecee;
	--ebs-green: #2ea44f;
	--ebs-green-dark: #248a41;
	--ebs-text: #1c1c1c;
	--ebs-muted: #6b7280;
	--ebs-border: #e5e7eb;
	font-family: inherit;
	color: var(--ebs-text);
	max-width: 1200px;
	margin: 0 auto;
}

.ebs-step__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.ebs-step__number {
	flex: 0 0 auto;
	width: 55px;
	height: 55px;
	border-radius: 50%;
	background: #ececec;
	color: #5b5b5b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 24px;
}

.ebs-step__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.ebs-divider {
	border: none;
	border-top: 1px solid var(--ebs-border);
	margin: 32px 0;
}

/* ---------------------------------------------------------------------
 * Step 1: calendar + appointment list
 * ------------------------------------------------------------------ */

.ebs-step1__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 24px;
	align-items: start;
}

@media ( max-width: 800px ) {
	.ebs-step1__grid {
		grid-template-columns: 1fr;
	}
}

.ebs-calendar {
	border: 1px solid var(--ebs-border);
	border-radius: 16px;
	padding: 24px;
}

.ebs-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.ebs-calendar__month-label {
	font-size: 18px;
	font-weight: 600;
}

.ebs-calendar__nav {
	background: none;
	border: 1px solid var(--ebs-border);
	border-radius: 50%;
	width: 50px;
	height: 50px;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ebs-calendar__nav:hover {
	background: #f5f5f5;
}

.ebs-calendar__weekdays,
.ebs-calendar__days {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	text-align: center;
}

.ebs-calendar__weekdays span {
	color: var(--ebs-muted);
	font-size: 13px;
	padding: 8px 0;
}

.ebs-calendar__day {
	padding: 10px 0;
	margin: 2px 0;
	border-radius: 50%;
	font-size: 14px;
	color: var(--ebs-text);
}

.ebs-calendar__day.is-outside {
	color: #d1d5db;
}

.ebs-calendar__day.is-bookable {
	border: 1px solid var(--ebs-border);
	cursor: pointer;
}

.ebs-calendar__day.is-bookable:hover {
	background: #f5f5f5;
}

.ebs-calendar__day.is-selected {
	background: var(--ebs-red);
	border-color: var(--ebs-red);
	color: #fff;
	font-weight: 700;
}

.ebs-calendar__day.is-full {
	color: #d1d5db;
	border-color: var(--ebs-border);
	text-decoration: line-through;
	cursor: not-allowed;
	pointer-events: none;
}

/* Appointment list */

.ebs-appointments {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ebs-appointment-row {
	display: grid;
	grid-template-columns: 40px 1fr auto 24px;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--ebs-border);
	border-radius: 12px;
	padding: 14px 18px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.ebs-appointment-row:hover:not(.is-full) {
	border-color: #cbd5e1;
}

.ebs-appointment-row.is-selected {
	border-color: var(--ebs-red);
	background: var(--ebs-red-bg);
}

.ebs-appointment-row.is-full {
	opacity: .6;
	cursor: not-allowed;
}


.ebs-appointment-row.is-selected .ebs-appointment-row__icon {
	background: var(--ebs-red);
}

.ebs-appointment-row__info {
	display: flex;
	flex-direction: column;
}

.ebs-appointment-row__date {
	font-weight: 600;
}

.ebs-appointment-row__time {
	color: var(--ebs-muted);
	font-size: 13px;
}

.ebs-appointment-row__seats {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

.ebs-appointment-row__seats.is-full {
	color: var(--ebs-red);
}

.ebs-appointment-row input[type="radio"] {
	width: 20px;
	height: 20px;
	accent-color: var(--ebs-red);
}

/* ---------------------------------------------------------------------
 * Step 2: exam levels
 * ------------------------------------------------------------------ */

.ebs-levels {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ebs-level-option {
	border: 1px solid var(--ebs-border);
	border-radius: 10px;
	padding: 12px 24px;
	cursor: pointer;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ebs-level-option:has(input:checked) {
	border-color: var(--ebs-red);
	background: var(--ebs-red-bg);
	color: var(--ebs-red);
}

.ebs-level-option input {
	accent-color: var(--ebs-red);
}

/* ---------------------------------------------------------------------
 * Step 3: result delivery pricing cards
 * ------------------------------------------------------------------ */

.ebs-result-options {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 16px;
}

@media ( max-width: 800px ) {
	.ebs-result-options {
		grid-template-columns: 1fr;
	}
}

.ebs-result-card {
	position: relative;
	border: 1px solid var(--ebs-border);
	border-radius: 14px;
	padding: 20px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ebs-result-card input[type="radio"] {
	position: absolute;
	opacity: 0;
}

.ebs-result-card__radio {
	position: absolute;
	top: 30px;
	left: 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
}

.ebs-result-card.is-selected .ebs-result-card__radio {
	border-color: var(--ebs-red);
	background: radial-gradient( circle, var(--ebs-red) 0 40%, transparent 44% );
}

.ebs-result-card__label {
	margin-left: 32px;
	font-weight: 700;
	font-size: 18px;
}

.ebs-result-card__extra {
	margin-left: 32px;
	font-size: 12px;
	font-weight: 700;
	color:#d52b2b;
	text-transform: none;
}

.ebs-result-card.is-selected .ebs-result-card__extra {
	color: #d52b2b;
}

.ebs-result-card:first-child .ebs-result-card__extra {
	color: var(--ebs-green-dark);
}

.ebs-result-card__price {
	margin-left: 32px;
	font-size: 19px;
	font-weight: 700;
}

.ebs-result-card__note {
	margin-left: 32px;
	font-size: 12px;
	color: var(--ebs-muted);
}

.ebs-result-card.is-selected {
	border-color: var(--ebs-red);
	background: var(--ebs-red-bg);
}

/* ---------------------------------------------------------------------
 * Step 4: total price + book now button
 * ------------------------------------------------------------------ */

.ebs-step-4 {
	margin-top: 28px;
}

.ebs-total-price {
	font-size: 16px;
	margin-bottom: 12px;
}

.ebs-form-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.ebs-form-message.is-error {
	background: var(--ebs-red-bg);
	color: var(--ebs-red);
}

.ebs-book-now-btn {
	background: var(--ebs-green);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 18px 32px;
	font-size: 17px !important;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: background-color .15s ease;
	text-transform:uppercase;
}

.ebs-book-now-btn:hover {
	background: var(--ebs-green-dark);
}

.ebs-book-now-btn:disabled,
.ebs-book-now-btn.is-loading {
	opacity: .7;
	cursor: default;
}


/*===============================================*/
.ebs-calendar__nav {
	padding: 0px;
}
.ebs-calendar__nav svg{
	width: 20px;
	height: 20px;
}
.ebs-calendar__day.is-bookable{
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px auto;
}
.ebs-calendar__day.is-selected:hover{
    background: var(--ebs-red);
    border-color: var(--ebs-red);
    color: #fff;
    font-weight: 700;
}
.ebs-appointment-row__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebs-appointment-row {
    display: grid;
    grid-template-columns: 50px 1fr auto 24px;
}

.ebs-appointment-row__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ebs-step1__grid{
}
.elementor hr {
    background-color: transparent;
    margin: 2em auto;
}
.ebs-appointment-row__icon svg{
	width:25px !important;
	height:25px !important;
}

.ebs-appointment-row.is-selected svg path{
	fill:#FFF !important;
}

.ebs-step.ebs-step-1 .step_1_left{
    max-width: 430px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.review-images{
	display:flex; 
	gap:20px;
    justify-content: end;
    align-items: center;
    width: 100%;
    margin-top: -64px;

}

.review-imag {
    width: 125px;
	background:#FFF;
    padding: 10px 10px 10px 10px;
    border-radius: 20px 20px 20px 20px;
    box-shadow: 2px 1px 5px 0px rgba(0, 0, 0, 0.4);
}
.review-imag img{  
  width:100% !important;
  max-width: 110px !important;
  object-fit: contain;
}

@media ( max-width: 767px ) {
	
.ebs-appointment-row__icon {
	width: 36px;
	height: 36px;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ebs-appointment-row__icon svg {
    width: 18px !important;
    height: 18px !important;
}
	.ebs-step-1 .ebs-step__header {
		display: flex;
		align-items: center;
		gap: 16px;
		margin-bottom: 24px;
		flex-direction: column-reverse;
	}
	.ebs-step.ebs-step-1 .step_1_left {
		gap: 10px;
	}
	.ebs-step__title {
		font-size: 18px;
	}
	.ebs-step__number {
		flex: 0 0 auto;
		width:35px;
		height: 35px;
	}
	.review-images {
		display: flex;
		gap: 20px;
		justify-content: center;
		width: 100%;
    	margin-top: -48px;
	}
	.review-imag {
		width: 110px;
	}
}