.eam-booking-module,
.eam-booking-module * {
    box-sizing: border-box;
}

.eam-booking-module {
    width: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eam-booking-module-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.11);
}

.eam-booking-module-header {
    margin-bottom: 22px;
}

.eam-booking-module-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0a9396;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eam-booking-module-header h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 850;
    line-height: 1.12;
}

.eam-booking-module-header p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
}

.eam-booking-module-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 14px;
    background: #fefce8;
    color: #713f12;
    font-size: 15px;
    line-height: 1.5;
}

.eam-booking-module-form {
    margin: 0;
}

.eam-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.eam-module-field,
.eam-module-field-full {
    min-width: 0;
}

.eam-module-field-full {
    grid-column: 1 / -1;
}

.eam-module-field label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.eam-module-field label span {
    color: #dc2626;
}

.eam-module-field input,
.eam-module-field select,
.eam-module-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.4;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eam-module-field textarea {
    resize: vertical;
}

.eam-module-field input:focus,
.eam-module-field select:focus,
.eam-module-field textarea:focus {
    border-color: #0a9396;
    box-shadow: 0 0 0 4px rgba(10, 147, 150, 0.14);
}

.eam-module-field select:disabled,
.eam-module-submit:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.eam-module-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.eam-module-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.eam-module-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.eam-module-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(to right, #f7693c, #c74e45, #7d3785, #582d9f, #3928af);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
    padding: 14px 26px;
    text-align: center;
    box-shadow: 0 14px 30px rgba(88, 45, 159, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eam-module-submit:hover,
.eam-module-submit:focus {
    background: linear-gradient(to right, #f7693c, #c74e45, #7d3785, #582d9f, #3928af);
    box-shadow: 0 16px 34px rgba(88, 45, 159, 0.30);
    transform: translateY(-1px);
}

.eam-booking-module-compact .eam-booking-module-card {
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

.eam-booking-module-compact .eam-module-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.eam-booking-module-compact .eam-booking-module-header h3 {
    font-size: 24px;
}

@media (max-width: 767px) {
    .eam-booking-module-card {
        padding: 20px;
        border-radius: 20px;
    }

    .eam-module-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .eam-booking-module-header {
        margin-bottom: 18px;
    }

    .eam-booking-module-header p {
        font-size: 15px;
    }
}

.eam-module-field small {
    display: block;
    margin-top: 6px;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

.eam-module-scheduler {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.eam-module-calendar-card,
.eam-module-slots-card {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 17px;
    background: #ffffff;
    padding: 15px;
}

.eam-module-calendar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.eam-module-calendar-topbar strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.2;
}

.eam-module-calendar-nav {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.eam-module-calendar-nav:hover {
    transform: translateY(-1px);
    background: #0f172a;
    color: #ffffff;
}

.eam-module-weekdays,
.eam-module-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.eam-module-weekdays {
    margin-bottom: 8px;
}

.eam-module-weekdays span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.eam-module-calendar-day,
.eam-module-calendar-empty {
    min-height: 40px;
}

.eam-module-calendar-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.eam-module-calendar-day i {
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(88, 45, 159, 0.10);
    color: #582d9f;
    font-size: 9px;
    font-style: normal;
    line-height: 15px;
}

.eam-module-calendar-day:not(:disabled):hover {
    transform: translateY(-1px);
    border-color: rgba(88, 45, 159, 0.32);
    box-shadow: 0 10px 18px rgba(88, 45, 159, 0.14);
}

.eam-module-calendar-day.is-selected {
    background: linear-gradient(to right, #f7693c, #c74e45, #7d3785, #582d9f, #3928af);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(88, 45, 159, 0.22);
}

.eam-module-calendar-day.is-selected i {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.eam-module-calendar-day.is-disabled {
    cursor: not-allowed;
    opacity: .38;
    background: #f8fafc;
}

.eam-module-slots-label {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(247, 105, 60, 0.10);
    color: #c74e45;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.eam-module-slots-card h4 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
}

.eam-module-slot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.eam-module-slot-button {
    min-height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 13px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.eam-module-slot-button:hover,
.eam-module-slot-button.is-selected {
    transform: translateY(-1px);
    border-color: transparent;
    background: linear-gradient(to right, #f7693c, #c74e45, #7d3785, #582d9f, #3928af);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(88, 45, 159, 0.22);
}

.eam-module-slot-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px;
    border-radius: 13px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
}

.eam-module-slot-feedback {
    min-height: 20px;
    margin-top: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.eam-module-slot-feedback-success {
    color: #166534;
}

.eam-module-slot-feedback-error {
    color: #b91c1c;
}


@media (max-width: 820px) {
    .eam-module-scheduler {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
}

@media (max-width: 430px) {
    .eam-module-calendar-card,
    .eam-module-slots-card {
        padding: 12px;
    }

    .eam-module-calendar-day,
    .eam-module-calendar-empty {
        min-height: 36px;
    }

    .eam-module-slot-list {
        grid-template-columns: 1fr;
    }
}

/* Multi-step booking module layout */
.eam-module-multistep-form {
    position: relative;
}

.eam-module-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.eam-module-stepper li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.eam-module-stepper li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.eam-module-stepper li strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eam-module-stepper li.is-active,
.eam-module-stepper li.is-complete {
    border-color: rgba(88, 45, 159, 0.22);
    background: linear-gradient(135deg, rgba(247,105,60,.10), rgba(57,40,175,.09));
    color: #111827;
}

.eam-module-stepper li.is-active span,
.eam-module-stepper li.is-complete span {
    background: linear-gradient(to right, #f7693c, #c74e45, #7d3785, #582d9f, #3928af);
    color: #ffffff;
}

.eam-module-step-panel {
    display: none;
    animation: eamModuleStepFade .22s ease both;
}

.eam-module-step-panel.is-active {
    display: block;
}

@keyframes eamModuleStepFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.eam-module-step-heading {
    margin: 0 0 18px;
}

.eam-module-step-heading span {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(88, 45, 159, 0.08);
    color: #582d9f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.eam-module-step-heading h4 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 850;
    line-height: 1.16;
}

.eam-module-step-heading p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.eam-module-step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
}

.eam-module-step-actions .eam-module-submit,
.eam-module-step-next,
.eam-module-step-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.eam-module-step-next,
.eam-module-step-actions .eam-module-submit {
    margin-left: auto;
    border: 0;
    background: linear-gradient(to right, #f7693c, #c74e45, #7d3785, #582d9f, #3928af);
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(88, 45, 159, 0.23);
}

.eam-module-step-next:hover,
.eam-module-step-next:focus,
.eam-module-step-actions .eam-module-submit:hover,
.eam-module-step-actions .eam-module-submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 17px 34px rgba(88, 45, 159, 0.28);
}

.eam-module-step-back {
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    color: #0f172a;
}

.eam-module-step-back:hover,
.eam-module-step-back:focus {
    border-color: rgba(88, 45, 159, 0.26);
    background: #f8fafc;
}

.eam-module-scheduler-date-only {
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, .95fr);
}

.eam-module-selected-summary {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 17px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 20px;
}

.eam-module-selected-summary span {
    margin-bottom: 7px;
    color: #582d9f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eam-module-selected-summary strong {
    color: #0f172a;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 900;
    line-height: 1.2;
}

.eam-module-selected-summary p,
.eam-module-step-feedback {
    margin: 10px 0 0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.eam-module-step-feedback-success {
    color: #166534 !important;
}

.eam-module-step-feedback-error {
    color: #b91c1c !important;
}

.eam-module-time-step-card {
    padding: 18px;
}

.eam-module-time-step-card .eam-module-slot-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 820px) {
    .eam-module-stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eam-module-scheduler-date-only {
        grid-template-columns: 1fr;
    }

    .eam-module-time-step-card .eam-module-slot-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .eam-module-stepper {
        gap: 7px;
    }

    .eam-module-stepper li {
        padding: 8px;
    }

    .eam-module-stepper li strong {
        font-size: 11px;
    }

    .eam-module-stepper li span {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .eam-module-step-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .eam-module-step-next,
    .eam-module-step-back,
    .eam-module-step-actions .eam-module-submit {
        width: 100%;
        margin-left: 0;
    }

    .eam-module-time-step-card .eam-module-slot-list {
        grid-template-columns: 1fr;
    }
}

.eam-module-step-actions .eam-module-submit {
    width: auto;
}

@media (max-width: 520px) {
    .eam-module-step-actions .eam-module-submit {
        width: 100%;
    }
}

.eam-module-custom-fields { margin-bottom: 18px; }
.eam-module-custom-fields-title { margin-bottom: 12px; padding: 13px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(247,105,60,.10), rgba(57,40,175,.10)); border: 1px solid rgba(88,45,159,.14); }
.eam-module-custom-fields-title h4 { margin: 0 0 4px; font-size: 18px; color: #0f172a; }
.eam-module-custom-fields-title p { margin: 0; color: #4b5870; font-size: 13px; }
.eam-module-custom-fields-grid { margin-top: 10px; }
.eam-module-inline-check { display:flex !important; align-items:center; gap:10px; padding:12px 13px; border:1px solid #d8e0ef; border-radius:12px; background:#fff; cursor:pointer; }
.eam-module-inline-check input { width:auto !important; min-height:auto !important; }
.eam-module-field input[type="file"] { padding: 12px !important; background:#fff; }
.eam-module-field small { display:block; margin-top:7px; color:#667085; font-size:12px; }

/* Premium popup form polish */
.eam-module-section-heading {
    padding: 16px 16px 13px;
    border: 1px dashed rgba(88,45,159,.24);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 100%);
}
.eam-module-section-heading h4 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}
.eam-module-section-heading p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}
.eam-module-upload-drop {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 118px;
    padding: 18px;
    border: 1.5px dashed rgba(88,45,159,.35);
    border-radius: 17px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    cursor: pointer;
    text-align: center;
}
.eam-module-upload-drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.eam-module-upload-drop span {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}
.eam-module-upload-drop em {
    color: #64748b;
    font-style: normal;
    font-weight: 600;
}
.eam-module-step-heading > span,
.eam-step-heading > span {
    letter-spacing: .08em;
    text-transform: uppercase;
}
@media (max-width: 767px) {
    .eam-module-upload-drop {
        min-height: 104px;
        padding: 16px;
    }
}
.eam-module-selected-service-summary {
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(88,45,159,.18);
    border-radius: 15px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}
.eam-module-selected-service-summary span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.eam-module-selected-service-summary strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

/* EAM module payment UI */
.eam-module-payment-block {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(88,45,159,.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(247,105,60,.08), rgba(57,40,175,.08));
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.eam-module-payment-block-head span {
  display: block;
  color: #582d9f;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 5px;
}
.eam-module-payment-block-head strong {
  color: #0f172a;
  font-size: 18px;
}
.eam-module-payment-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eam-module-payment-input-row span {
  min-width: 58px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f5f7fb;
  border: 1px solid #d7deea;
  font-weight: 800;
  color: #3928af;
  text-align: center;
}
