.schedule-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.schedule-dialog.show {
    opacity: 1;
    visibility: visible;
}

.schedule-dialog-content {
    background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.8));
    border-radius: 24px;
    width: 94%;
    max-width: 1100px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.28s ease;
    position: relative;
}

.schedule-dialog.show .schedule-dialog-content {
    transform: scale(1);
}

.schedule-dialog-close {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: black;
    transition: background-color .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
    position: absolute;
    top: 16px;
    right: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 1;
}

.schedule-dialog-close:hover { background-color: rgba(255,255,255,0.14); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.32); }
.schedule-dialog-close:active { transform: translateY(0); }

.schedule-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }

.schedule-visual {
    padding: 48px 40px;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    background: linear-gradient(135deg, var(--strong-blue), rgba(6,62,135,0.7));
    color: #fff;
    position: relative;
}

.schedule-visual-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.schedule-visual-description {
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.95);
}

.schedule-visual-art {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 24px;
    top: 120px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.schedule-visual-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom left, rgba(255,203,5,0.35), transparent 40%), radial-gradient(ellipse at bottom right, rgba(255,203,5,0.18), transparent 50%);
    filter: blur(14px);
    z-index: 0;
}

.schedule-visual-icon {
    width: 160px;
    height: 160px;
    opacity: .6;
    color: #fff;
    animation: breathe 6s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}
.schedule-visual-icon .icon-frame { stroke: rgba(255,255,255,.95); transition: stroke .35s ease, transform .35s ease; }
.schedule-visual-icon .icon-accent { stroke: var(--yellow); transition: stroke .35s ease; }
.schedule-visual-icon.is-success { color: #16a34a; opacity: .85; animation: successPulse .6s ease-out; }
.schedule-visual-icon.is-success .icon-frame,
.schedule-visual-icon.is-success .icon-accent { stroke: #16a34a; }

.schedule-form-panel {
    padding: 40px;
    background: #ffffff;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}

.schedule-brand { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 8px; }
.schedule-brand img { height: 28px; width: auto; }

.schedule-success {
    display: none;
    min-height: 260px;
    padding: 24px 8px 8px 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    text-align: center;
    animation: fadeUp .28s ease both;
}

.schedule-success-icon svg { color: #16a34a; }
.schedule-success-title { font-size: 22px; font-weight: bold; color: #0f172a; line-height: 1.2; }
.schedule-success-desc { font-size: 15px; color: #334155; line-height: 1.6; max-width: 520px; }

.schedule-form-panel.submitted form { display: none; }
.schedule-form-panel.submitted .schedule-success { display: flex; }

.schedule-form-group { margin-bottom: 16px; }

.schedule-form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--strong-blue);
    margin-bottom: 6px;
}

.schedule-form-input,
.schedule-form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #0f172a;
    background-color: #f7f7f7;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.schedule-form-input:focus,
.schedule-form-textarea:focus {
    border-color: var(--strong-blue);
    box-shadow: 0 0 0 4px rgba(6, 62, 135, 0.12);
}

.schedule-form-textarea { min-height: 120px; resize: vertical; }

.schedule-form-error {
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
    min-height: 18px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease;
}

.schedule-form-error.show { opacity: 1; transform: translateY(0); }
.schedule-form-error.ok { color: #16a34a; }
.schedule-form-input.invalid, .schedule-form-textarea.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.schedule-form-input.valid, .schedule-form-textarea.valid { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.schedule-form-input.shake-once, .schedule-form-textarea.shake-once { animation: inputShake .2s linear 1; }

.schedule-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 10px; }

.schedule-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter .2s ease;
}


.schedule-btn.secondary { background-color: #f1f5f9; color: #0f172a; }
.schedule-btn.secondary:hover { background-color: #e2e8f0; }

.schedule-btn.submit {
    background: linear-gradient(135deg, var(--yellow) 0%, #ffd84d 50%, var(--yellow) 100%);
    background-size: 200% 100%;
    color: #111827;
    box-shadow: 0 10px 20px rgba(255,203,5,.25);
    animation: gradientSlide 6s ease infinite;
}
.schedule-btn.submit:hover { filter: brightness(0.98); transform: translateY(-2px); box-shadow: 0 16px 28px rgba(255,203,5,.32); }
.schedule-btn:active { transform: translateY(0); }
.schedule-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.schedule-btn:disabled:hover { transform: none; filter: none; }

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-form-error.api-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    color: #991b1b;
}

/* Floating Action Button as fallback trigger */
.schedule-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background-color: #111827;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -4px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10001;
    transition: transform .15s ease, background-color .2s ease;
}

.schedule-fab:hover { transform: translateY(-2px); background-color: #0b1220; }
.schedule-fab:active { transform: translateY(0); }


@media (max-width: 900px) {
    .schedule-visual-art{
        display: none;
    }
    .schedule-form-group{
        margin-bottom: 10px;   
    }
    .schedule-layout {
        grid-template-columns: 1fr;
    }
    .schedule-visual { border-radius: 24px 24px 0 0; padding: 16px 24px; }
    .schedule-form-panel { border-radius: 0 0 24px 24px; padding: 14px 24px; }
    .schedule-visual-title { font-size: 36px; }
}

@keyframes inputShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: .35; }
    50% { transform: scale(1.08); opacity: .5; }
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes successPulse {
    0% { transform: scale(0.92); opacity: .7; }
    60% { transform: scale(1.06); opacity: .95; }
    100% { transform: scale(1); opacity: 1; }
}


