/* LMac Dance Studio — Lavender Dreams (WordPress plugin, scoped to .lmac-booking-wrap) */

/* ── Reset + Root ─────────────────────────────────────────── */
.lmac-booking-wrap {
    --lmac-lavender-light: #EEEDFE;
    --lmac-lavender-mid:   #AFA9EC;
    --lmac-lavender-dark:  #6B52C8;
    --lmac-lavender-deep:  #26215C;
    --lmac-pink-soft:      #F4C0D1;
    --lmac-white:          #FFFFFF;
    --lmac-grey-light:     #F7F6FE;
    --lmac-grey-text:      #6B6B80;
    --lmac-border:         #D8D5F5;
    --lmac-error:          #D04040;
    --lmac-success:        #2E7D4F;
    --lmac-glow:           rgba(107, 82, 200, 0.22);
    --lmac-glow-strong:    rgba(107, 82, 200, 0.42);
    font-size: inherit !important;
    color: var(--lmac-lavender-deep) !important;
    line-height: 1.65 !important;
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
    box-sizing: border-box;
}
.lmac-booking-wrap *, .lmac-booking-wrap *::before, .lmac-booking-wrap *::after {
    box-sizing: border-box;
}

/* ── Page Headings ───────────────────────────────────────── */
.lmac-page-title {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 2rem !important;
    font-weight: normal !important;
    color: var(--lmac-lavender-deep) !important;
    margin: 0 0 0.35rem !important;
    line-height: 1.2 !important;
}
.lmac-page-subtitle {
    color: var(--lmac-grey-text);
    margin: 0 0 2rem;
    font-size: 15px;
}

/* ── Cards ───────────────────────────────────────────────── */
.lmac-card {
    background: var(--lmac-white);
    border: 1.5px solid var(--lmac-border);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 12px rgba(107, 82, 200, 0.06);
}
.lmac-card-title {
    font-family: Georgia, serif !important;
    font-size: 20px !important;
    font-weight: normal !important;
    color: var(--lmac-lavender-deep) !important;
    margin: 0 0 1.25rem !important;
    padding-bottom: 0.9rem;
    border-bottom: 1.5px solid var(--lmac-border);
}

/* ── Form layout ─────────────────────────────────────────── */
.lmac-form-group { margin-bottom: 1.25rem; }
.lmac-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 600px) { .lmac-form-row { grid-template-columns: 1fr; } }

/* ── Labels ──────────────────────────────────────────────── */
.lmac-booking-wrap label {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--lmac-lavender-deep) !important;
    margin-bottom: 0.45rem !important;
    letter-spacing: 0.01em;
}
.lmac-optional {
    font-weight: normal !important;
    color: var(--lmac-grey-text);
    font-size: 14px;
}

/* ── Inputs + Textarea ───────────────────────────────────── */
.lmac-booking-wrap input[type="text"],
.lmac-booking-wrap input[type="email"],
.lmac-booking-wrap input[type="tel"],
.lmac-booking-wrap input[type="date"],
.lmac-booking-wrap input[type="url"],
.lmac-booking-wrap textarea,
.lmac-booking-wrap select {
    width: 100% !important;
    padding: 0.85rem 1.1rem !important;
    border: 2px solid var(--lmac-border) !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    color: var(--lmac-lavender-deep) !important;
    background: var(--lmac-white) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    margin: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4 !important;
}
.lmac-booking-wrap input[type="text"]:hover,
.lmac-booking-wrap input[type="email"]:hover,
.lmac-booking-wrap input[type="tel"]:hover,
.lmac-booking-wrap input[type="date"]:hover,
.lmac-booking-wrap textarea:hover {
    border-color: var(--lmac-lavender-mid) !important;
}

/* ── FOCUS GLOW ──────────────────────────────────────────── */
.lmac-booking-wrap input[type="text"]:focus,
.lmac-booking-wrap input[type="email"]:focus,
.lmac-booking-wrap input[type="tel"]:focus,
.lmac-booking-wrap input[type="date"]:focus,
.lmac-booking-wrap input[type="url"]:focus,
.lmac-booking-wrap textarea:focus,
.lmac-booking-wrap select:focus {
    outline: none !important;
    border-color: var(--lmac-lavender-dark) !important;
    box-shadow:
        0 0 0 4px var(--lmac-glow),
        0 0 20px var(--lmac-glow),
        inset 0 1px 3px rgba(107, 82, 200, 0.06) !important;
}

.lmac-booking-wrap textarea {
    resize: vertical;
    min-height: 90px !important;
}

/* ── Classes grid ────────────────────────────────────────── */
.lmac-classes-section { margin-bottom: 0.75rem; }
.lmac-day-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lmac-lavender-dark);
    margin: 1.25rem 0 0.6rem;
}
.lmac-class-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.05rem 1.15rem;
    border: 2px solid var(--lmac-border);
    border-radius: 12px;
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.15s;
    background: var(--lmac-white);
}
.lmac-class-option:hover {
    border-color: var(--lmac-lavender-mid);
    background: var(--lmac-lavender-light);
    box-shadow: 0 2px 12px var(--lmac-glow);
    transform: translateY(-1px);
}
.lmac-class-option.lmac-selected {
    border-color: var(--lmac-lavender-dark);
    background: var(--lmac-lavender-light);
    box-shadow: 0 0 0 1px var(--lmac-lavender-dark), 0 3px 16px var(--lmac-glow);
}
.lmac-class-option.lmac-full { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.lmac-class-checkbox {
    margin-top: 2px;
    accent-color: var(--lmac-lavender-dark);
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    cursor: pointer;
}
.lmac-class-info { flex: 1; min-width: 0; }
.lmac-class-name { font-weight: 600; font-size: 16px; }
.lmac-class-meta { font-size: 14px; color: var(--lmac-grey-text); margin-top: 3px; }
.lmac-class-price { font-weight: 700; font-size: 16px; color: var(--lmac-lavender-dark); white-space: nowrap; }
.lmac-class-requires {
    font-size: 13px; color: #9B6A00; background: #FFF8E1;
    padding: 3px 9px; border-radius: 6px; margin-top: 5px; display: inline-block;
}

/* ── Student blocks ──────────────────────────────────────── */
.lmac-student-block {
    border: 2px solid var(--lmac-border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--lmac-grey-light);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lmac-student-block:focus-within {
    border-color: var(--lmac-lavender-mid);
    box-shadow: 0 0 0 3px var(--lmac-glow);
}
.lmac-student-block-title {
    font-weight: 600;
    font-size: 17px;
    color: var(--lmac-lavender-deep);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lmac-btn-remove-student {
    background: none; border: none; color: var(--lmac-error);
    cursor: pointer; font-size: 14px; padding: 0; font-family: inherit;
    transition: opacity 0.15s;
}
.lmac-btn-remove-student:hover { opacity: 0.7; }
.lmac-btn-add-student {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: 2px dashed var(--lmac-lavender-mid);
    border-radius: 10px; background: none;
    color: var(--lmac-lavender-dark); font-size: 15px;
    cursor: pointer; transition: background 0.15s, border-color 0.15s;
    font-family: inherit; margin-top: 0.25rem;
}
.lmac-btn-add-student:hover {
    background: var(--lmac-lavender-light);
    border-color: var(--lmac-lavender-dark);
}

/* ── Pricing Summary ─────────────────────────────────────── */
.lmac-summary-card {
    background: var(--lmac-lavender-deep);
    color: var(--lmac-white) !important;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 24px rgba(38, 33, 92, 0.2);
}
.lmac-summary-card * {
    color: var(--lmac-white) !important;
}
.lmac-summary-card h3 {
    font-family: Georgia, serif !important;
    font-weight: normal !important;
    font-size: 18px !important;
    margin: 0 0 1.1rem !important;
    opacity: 0.85;
}
.lmac-summary-line {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 15px;
}
.lmac-s-name { flex: 1; }
.lmac-s-detail { font-size: 13px; opacity: 0.6; }
.lmac-s-price { font-weight: 600; color: var(--lmac-pink-soft) !important; }
.lmac-summary-total {
    display: flex; justify-content: space-between;
    font-size: 21px; font-weight: 700;
    margin-top: 1.1rem; padding-top: 0.9rem;
    border-top: 2px solid rgba(255,255,255,0.22);
}
.lmac-summary-empty { opacity: 0.45; font-size: 15px; text-align: center; padding: 1rem 0; margin: 0; }

/* ── Waiver ──────────────────────────────────────────────── */
.lmac-waiver-box {
    background: var(--lmac-lavender-light); border: 1.5px solid var(--lmac-lavender-mid);
    border-radius: 10px; padding: 1.1rem 1.25rem;
    font-size: 15px; margin-bottom: 1.1rem;
    max-height: 175px; overflow-y: auto;
    color: var(--lmac-lavender-deep); line-height: 1.65;
}
.lmac-waiver-agree {
    display: flex; align-items: center; gap: 0.7rem;
    font-size: 15px; cursor: pointer; font-weight: normal !important;
}
.lmac-waiver-agree input {
    accent-color: var(--lmac-lavender-dark);
    width: 20px !important; height: 20px !important; cursor: pointer;
}

/* ── Notices ─────────────────────────────────────────────── */
.lmac-notice { padding: 1rem 1.25rem; border-radius: 10px; font-size: 15px; margin-bottom: 1.25rem; }
.lmac-notice-info    { background: var(--lmac-lavender-light); border: 1.5px solid var(--lmac-lavender-mid); color: var(--lmac-lavender-deep); }
.lmac-notice-success { background: #EAF7EF; border: 1.5px solid #9FD4B5; color: #2E7D4F; }
.lmac-notice-error   { background: #FEF0F0; border: 1.5px solid #F4A8A8; color: #D04040; }

/* ── SUBMIT BUTTON ───────────────────────────────────────── */
.lmac-btn-primary {
    display: block !important;
    width: 100% !important;
    padding: 1.1rem 1.5rem !important;
    background: linear-gradient(135deg, #6B52C8 0%, #7B60D8 50%, #6B52C8 100%) !important;
    background-size: 200% auto !important;
    color: var(--lmac-white) !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 18px !important;
    font-family: Georgia, serif !important;
    font-weight: normal !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-position 0.4s ease !important;
    box-shadow: 0 5px 22px rgba(107, 82, 200, 0.38), 0 2px 8px rgba(107, 82, 200, 0.2) !important;
    margin-bottom: 0 !important;
    -webkit-font-smoothing: antialiased;
}

/* shimmer sweep layer */
.lmac-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    transition: left 0s;
}

/* hover: lift + glow + sweep */
.lmac-btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow:
        0 10px 36px rgba(107, 82, 200, 0.52),
        0 0 40px rgba(244, 192, 209, 0.22),
        0 2px 8px rgba(107, 82, 200, 0.25) !important;
    background-position: right center !important;
}
.lmac-btn-primary:hover::before {
    left: 150%;
    transition: left 0.52s ease-in-out;
}

/* press */
.lmac-btn-primary:active {
    transform: translateY(1px) !important;
    box-shadow: 0 3px 12px rgba(107, 82, 200, 0.35) !important;
    transition-duration: 0.08s !important;
}

/* ripple element (injected by JS on click) */
.lmac-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    transform: scale(0);
    animation: lmacRippleEffect 0.55s linear;
    pointer-events: none;
}
@keyframes lmacRippleEffect {
    to { transform: scale(3.5); opacity: 0; }
}

/* sparkle particles (injected by JS on click) */
@keyframes lmacSparkleUp {
    0%   { transform: translateY(0) scale(1) rotate(0deg);   opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: translateY(-72px) scale(0.4) rotate(20deg); opacity: 0; }
}
.lmac-sparkle-particle {
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    animation: lmacSparkleUp 0.9s ease-out forwards;
    user-select: none;
    line-height: 1;
}

/* ── Success Page ─────────────────────────────────────────── */
.lmac-success-hero { text-align: center; padding: 3rem 1rem; }
.lmac-success-icon { font-size: 4rem; margin-bottom: 1rem; }
.lmac-success-hero h2 {
    font-family: Georgia, serif !important; font-size: 1.9rem !important;
    font-weight: normal !important; color: var(--lmac-lavender-deep) !important;
    margin-bottom: 0.5rem !important;
}
.lmac-success-hero p { color: var(--lmac-grey-text); font-size: 1.05rem; }

/* ── Success table ───────────────────────────────────────── */
.lmac-booking-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lmac-booking-wrap th {
    background: var(--lmac-lavender-light); color: var(--lmac-lavender-deep);
    font-weight: 600; text-align: left; padding: 0.75rem 0.9rem;
}
.lmac-booking-wrap td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--lmac-border); vertical-align: top; }
