/* High-End Clean Clinical Booking Palette */
.psycho-booking-container {
    max-width: 740px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -15px rgba(15, 76, 129, 0.07);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
    overflow: hidden;
    box-sizing: border-box;
}

.psycho-booking-container *, 
.psycho-booking-container *::before, 
.psycho-booking-container *::after {
    box-sizing: border-box;
}

.form-header-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 35px 40px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.form-header-banner h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f4c81;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.form-header-banner p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.psycho-clean-form {
    padding: 40px;
}

.form-grid-2 {
    display: flex;
    gap: 24px;
    margin-bottom: 4px;
}

.form-group-field {
    flex: 1;
    margin-bottom: 24px;
    display: block;
}

.form-group-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group-field label .req {
    color: #dc2626;
    margin-left: 2px;
}

.psycho-clean-form input[type="text"],
.psycho-clean-form input[type="email"],
.psycho-clean-form input[type="tel"],
.psycho-clean-form select,
.psycho-clean-form textarea {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.psycho-clean-form textarea {
    height: auto;
    resize: vertical;
    padding: 14px 16px;
}

.psycho-clean-form input:focus,
.psycho-clean-form select:focus,
.psycho-clean-form textarea:focus {
    background: #ffffff;
    border-color: #0f4c81;
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.08);
}

/* Flex Phone Element Layout Configuration */
.phone-flex-wrapper {
    display: flex;
    gap: 10px;
}

.phone-flex-wrapper select {
    width: 130px;
    flex-shrink: 0;
}

/* Modality Card Styling rules layout architecture */
.section-label-heading {
    margin-bottom: 12px !important;
}

.modality-cards-row {
    display: flex;
    gap: 16px;
}

.modality-option-card {
    flex: 1;
    position: relative;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    background: #f8fafc;
    display: flex !important;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.modality-option-card:hover {
    border-color: #0f4c81;
    background: rgba(15, 76, 129, 0.02);
}

.modality-option-card input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #0f4c81;
    flex-shrink: 0;
}

.option-inner {
    display: flex;
    flex-direction: column;
}

.option-inner .opt-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.option-inner .opt-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Verified Checked State via Parent Selector rules */
.modality-option-card:has(input[type="radio"]:checked) {
    border-color: #0f4c81;
    background: rgba(15, 76, 129, 0.04);
    box-shadow: inset 0 0 0 1px #0f4c81;
}

.premium-submit-action {
    width: 100%;
    height: 52px;
    background: #0f4c81;
    color: #ffffff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.15);
}

.premium-submit-action:hover {
    background: #0a3358;
    box-shadow: 0 6px 16px rgba(15, 76, 129, 0.25);
    transform: translateY(-1px);
}

.premium-submit-action:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Popup Confirmation Layout Overhaul */
.psycho-modal-overlay-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999999;
}

.psycho-modal-overlay-blur.active {
    opacity: 1;
    pointer-events: auto;
}

.psycho-modal-content-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.psycho-modal-overlay-blur.active .psycho-modal-content-card {
    transform: scale(1);
}

.success-checkmark-circle {
    width: 64px;
    height: 64px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 24px auto;
    border: 2px solid #a7f3d0;
}

.psycho-modal-content-card h3 {
    font-size: 22px;
    color: #0f4c81;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.modal-body-rendered {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.modal-dismiss-btn {
    background: #0f4c81;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.modal-dismiss-btn:hover {
    background: #0a3358;
}

/* Responsive Adaptive Viewports Breakpoints */
@media (max-width: 640px) {
    .form-grid-2 {
        flex-direction: column;
        gap: 0;
    }
    .modality-cards-row {
        flex-direction: column;
        gap: 12px;
    }
    .psycho-clean-form {
        padding: 24px;
    }
    .form-header-banner {
        padding: 25px 24px;
    }
}
