/* Client Intake Form Styles */

/* Only apply box-sizing, don't reset margins/padding globally */
* {
    box-sizing: border-box;
}

/* Header */
.intake-header {
    background: white;
    color: #0f172a;
    padding: 40px 20px 30px 20px;
    text-align: center;
    margin-top: 0;
}

.intake-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #0f172a;
    font-weight: 600;
}

.intake-header p {
    color: #475569;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
}

/* Desktop Two-Column Grid Layout */
.intake-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 968px) {
    .intake-grid {
        grid-template-columns: 400px 1fr;
        gap: 40px;
        align-items: start;
    }
}

/* Sticky left column on desktop */
@media (min-width: 968px) {
    .intake-left-column {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 #f1f5f9;
    }

    .intake-left-column::-webkit-scrollbar {
        width: 8px;
    }

    .intake-left-column::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }

    .intake-left-column::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    .intake-left-column::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

.intake-left-column,
.intake-right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.panel-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.panel-summary h2 {
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.panel-summary .price {
    font-size: 36px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 15px;
}

.panel-summary ul {
    list-style: none;
    padding: 0;
}

.panel-summary li {
    padding: 5px 0;
    font-size: 14px;
    color: #475569;
}

/* Panel Details Expander */
.panel-details-expander {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.panel-details-toggle {
    background: none;
    border: none;
    width: 100%;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
    transition: color 0.2s ease;
}

.panel-details-toggle:hover {
    color: #0052a3;
}

.panel-details-toggle .toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.panel-details-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.panel-details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.panel-details-content.expanded {
    max-height: 2000px;
}

.panel-details-inner {
    padding: 20px 0;
}

.panel-detail-section {
    margin-bottom: 25px;
}

.panel-detail-section:last-child {
    margin-bottom: 0;
}

/* Fixed height scrollable biomarkers section */
.biomarkers-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 10px;
}

/* Custom scrollbar styling */
.biomarkers-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.biomarkers-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.biomarkers-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.biomarkers-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.panel-detail-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-detail-section h4 .icon {
    font-size: 18px;
}

.biomarker-category {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #0066cc;
}

.biomarker-category h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.biomarker-tests {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}

.biomarker-tests li {
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
    display: flex;
    align-items: start;
}

.biomarker-tests li:before {
    content: "•";
    margin-right: 8px;
    color: #0066cc;
    font-weight: 600;
}

.simplelabs-includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simplelabs-includes-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: start;
    gap: 12px;
}

.simplelabs-includes-list li:last-child {
    border-bottom: none;
}

.simplelabs-includes-list .feature-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.simplelabs-includes-list .feature-content {
    flex: 1;
}

.simplelabs-includes-list .feature-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 4px;
}

.simplelabs-includes-list .feature-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.form-card h3 {
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
}

.form-group label .required {
    color: #dc2626;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    color: #0f172a;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.checkbox-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label.checked {
    border-color: #64748b;
    background: #f1f5f9;
}

.checkbox-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.checkbox-text strong {
    display: block;
    margin-bottom: 5px;
    color: #0f172a;
    font-weight: 600;
}

.consent-box {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.consent-card {
    margin-top: 40px;
    margin-bottom: 40px;
}

.restricted-state-consent {
    background: #fee2e2;
    border: 3px solid #ef4444;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.restricted-state-consent-title {
    color: #991b1b;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.restricted-state-consent-body {
    color: #7f1d1d;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.restricted-state-consent-body strong {
    font-weight: 600;
    color: #991b1b;
}

.restricted-state-consent-checkbox {
    display: none;
}

.restricted-state-consent-checkbox.show {
    display: block;
}

.consent-box h4 {
    color: #92400e;
    margin-bottom: 10px;
    font-weight: 600;
}

.consent-box p {
    font-size: 13px;
    line-height: 1.6;
    color: #92400e;
    margin-bottom: 10px;
}

.policy-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.policy-note strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-weight: 600;
}

.policy-note p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* Policy Modal */
.policy-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.policy-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.policy-modal-header {
    background: #0f172a;
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.policy-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.policy-modal-close {
    color: white;
    font-size: 32px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.policy-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.policy-modal-body {
    padding: 25px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    line-height: 1.8;
}

.policy-modal-body h4 {
    color: #1e3a8a;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.policy-modal-body p {
    margin-bottom: 15px;
    color: #333;
}

.policy-modal-body ul {
    margin: 10px 0 15px 20px;
    color: #555;
}

.policy-modal-body li {
    margin-bottom: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.availability-message {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.submit-button {
    width: 100%;
    background: #0f172a;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.submit-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 40px;
}

.back-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

.help-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .intake-header h1 {
        font-size: 24px;
    }
}
