* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

#consultationForm {
    max-width: 100%;
}

h1 {
    text-align: center;
    color: #4A9B9B;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
}

.form-section {
    margin-bottom: 30px;
    max-width: 100%;
}

.form-section h2 {
    color: #4A9B9B;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #4A9B9B;
    padding-bottom: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    max-width: 100%;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 15px;
    min-width: 0;
    max-width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #666;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

/* Flatpickr custom styling to match site */
.flatpickr-calendar {
    font-family: 'Poppins', sans-serif !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #ddd !important;
    overflow: hidden !important;
}

.flatpickr-month {
    background-color: #4A9B9B !important;
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 12px 10px !important;
    height: auto !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 10 !important;
}

.flatpickr-current-month {
    color: white !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 11 !important;
    padding: 0 !important;
}

.flatpickr-monthDropdown-months,
.flatpickr-monthDropdown-month {
    color: white !important;
    background-color: #4A9B9B !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: white !important;
    font-weight: 700 !important;
}

.flatpickr-input.altInput {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 300 !important;
}

/* Hide the actual input, show only the altInput */
.form-group input[name="date_of_birth"]:not(.flatpickr-input),
.form-group input[name="signature_date"]:not(.flatpickr-input) {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.form-group .flatpickr-input {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 300 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: white !important;
    fill: white !important;
    padding: 5px !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 12 !important;
}

.flatpickr-prev-month {
    left: 10px !important;
}

.flatpickr-next-month {
    right: 10px !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
}

.flatpickr-months {
    position: relative !important;
    z-index: 10 !important;
}

.flatpickr-weekdays {
    padding: 8px 0 !important;
    background-color: #f8f9fa !important;
}

.flatpickr-weekday {
    color: #666 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

.flatpickr-day {
    font-weight: 300 !important;
    color: #333 !important;
    border-radius: 4px !important;
}

.flatpickr-day:hover {
    background-color: #e9ecef !important;
    border-color: #4A9B9B !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background-color: #4A9B9B !important;
    border-color: #4A9B9B !important;
    color: white !important;
    font-weight: 700 !important;
}

.flatpickr-day.today {
    border-color: #4A9B9B !important;
    color: #4A9B9B !important;
    font-weight: 700 !important;
}

.flatpickr-day.today:hover {
    background-color: #4A9B9B !important;
    color: white !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #bbb !important;
}

.flatpickr-day.flatpickr-disabled:hover {
    background-color: transparent !important;
    cursor: not-allowed !important;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.checkbox-item label {
    font-weight: normal;
    color: #666;
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #666;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    width: 18px;
    height: 18px;
}

.body-diagram {
    margin: 20px 0;
    text-align: center;
    max-width: 100%;
    overflow-x: auto;
}

.body-diagram p {
    margin-bottom: 15px;
    font-weight: bold;
    color: #666;
}

.body-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    max-width: 100%;
}

.body-view {
    position: relative;
    cursor: crosshair;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.body-view svg {
    width: 150px;
    height: auto;
    border: 2px solid #999;
    border-radius: 4px;
    background: white;
    padding: 10px;
}

.body-view span {
    display: block;
    text-align: center;
    order: -1;
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: bold;
}

.body-view-clear {
    position: static;
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 12px;
}

.pain-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: rgba(255, 0, 0, 0.7);
    border: 2px solid darkred;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}

.signature-pad {
    border: 2px solid #333;
    border-radius: 4px;
    cursor: crosshair;
    background-color: white;
    touch-action: none;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 200px;
}

.signature-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    max-width: 100%;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    background-color: #4A9B9B;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.btn:hover {
    background-color: #3A7B7B;
    color: white;
}

.btn-clear {
    background-color: #dc3545;
    color: white;
}

.btn-clear:hover {
    background-color: #c82333;
}

.btn-submit {
    background-color: #4A9B9B;
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: #3A7B7B;
}

.btn-primary {
    background-color: #4A9B9B;
    color: white;
    padding: 12px 30px;
}

.btn-primary:hover {
    background-color: #3A7B7B;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-delete:hover {
    background-color: #c82333;
    color: white;
}

.declaration {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
}

.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.required {
    color: #dc3545;
}

/* Success Page */
.success-container {
    background: white;
    padding: 60px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 100px auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #28a745;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon::after {
    content: "✓";
    color: white;
    font-size: 50px;
    font-weight: bold;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Backoffice */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4A9B9B;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 2px solid #4A9B9B;
    position: relative;
}

.tab {
    padding: 14px 30px;
    text-decoration: none;
    color: #666;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-right: 2px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 15px;
    display: inline-block;
    cursor: pointer;
}

.tab:hover {
    background-color: #e9ecef;
    color: #4A9B9B;
}

.tab.active {
    background-color: #fff;
    color: #4A9B9B;
    border-bottom: 2px solid #4A9B9B;
    position: relative;
    z-index: 2;
    margin-bottom: -2px;
    font-weight: 700;
    border-top: 3px solid #4A9B9B;
    border-left: 2px solid #4A9B9B;
    border-right: 2px solid #4A9B9B;
}


.search-bar {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.search-bar button {
    padding: 12px 30px;
    background-color: #2c5f7c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.search-bar button:hover {
    background-color: #1a3d4f;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #4A9B9B;
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-card .number {
    color: #4A9B9B;
    font-size: 32px;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background-color: #4A9B9B;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.consultation-actions {
    white-space: nowrap;
}

.consultation-actions-row {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 5px;
    white-space: nowrap;
}

.consultation-actions .btn {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
}

tr:hover {
    background-color: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #4A9B9B;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #f0f0f0;
    border-color: #4A9B9B;
}

.pagination .active {
    background-color: #4A9B9B;
    color: white;
    border-color: #4A9B9B;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* View Page */
.section {
    margin-bottom: 30px;
}

.section h2 {
    color: #4A9B9B;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #4A9B9B;
    padding-bottom: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.info-item label {
    font-weight: bold;
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-item .value {
    color: #333;
    font-size: 16px;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.condition-item {
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.condition-item.checked {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
}

.checkmark {
    color: #28a745;
    margin-right: 8px;
    font-weight: bold;
}

.signature-box {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.signature-box img {
    max-width: 400px;
    height: auto;
    border: 1px solid #ddd;
    background: white;
}

.yes-no {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}

.yes-no.yes {
    background-color: #fff3cd;
    color: #856404;
}

.yes-no.no {
    background-color: #d4edda;
    color: #155724;
}

.yes-no.na {
    background-color: #e2e3e5;
    color: #6c757d;
}

.treatment-notes {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #2c5f7c;
}

.note-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.note-date {
    font-weight: bold;
    color: #2c5f7c;
}

.note-therapist {
    color: #666;
    font-size: 14px;
}

.note-content {
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

.add-note-form {
    background-color: #e7f3ff;
    padding: 25px;
    border-radius: 4px;
    margin-top: 20px;
}

.body-diagram-display {
    margin: 20px 0;
}

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

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .body-images {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border: 2px solid #4A9B9B;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #4A9B9B;
    text-decoration: none;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .btn, .add-note-form, .header a, .header span, .btn-delete {
        display: none !important;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }

    .header {
        border-bottom: 2px solid #000;
    }
}

/* Public form selection page */
.form-selection-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.form-selection-intro {
    text-align: center;
    margin-bottom: 30px;
}

.form-selection-intro h1 {
    margin-bottom: 8px;
}

.form-selection-intro p {
    color: #666;
    margin: 0 0 8px;
}

.privacy-policy-content {
    line-height: 1.7;
    color: #444;
}

.privacy-policy-content p {
    margin: 0 0 16px;
}

.privacy-policy-content ul,
.privacy-policy-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.privacy-policy-content ul {
    list-style-type: disc;
}

.privacy-policy-content ol {
    list-style-type: decimal;
}

.privacy-policy-content li[data-list="bullet"] {
    list-style-type: disc;
}

.privacy-policy-content strong,
.privacy-policy-content b {
    font-weight: 700;
}

.privacy-policy-content h2,
.privacy-policy-content h3 {
    margin: 24px 0 12px;
    color: #333;
}

.privacy-policy-content a {
    color: #4A9B9B;
}

.cf-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.cf-form-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background: #fff;
    border: 3px solid var(--cf-primary, #4A9B9B);
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cf-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cf-form-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(74, 155, 155, 0.12);
    color: var(--cf-primary, #4A9B9B);
    margin-bottom: 16px;
}

.cf-form-card-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.cf-form-card-title {
    margin: 0 0 12px;
    color: var(--cf-primary, #4A9B9B);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.cf-form-card-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 900px) {
    .cf-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

[x-cloak] { display: none !important; }

.cf-form-title {
    text-align: center;
    color: var(--cf-primary, #666);
    margin-bottom: 20px;
    font-weight: 700;
}

.cf-form-banner {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(45, 106, 106, 0.08);
    border: 1px solid rgba(45, 106, 106, 0.18);
    color: #1e4f4f;
    font-size: 0.95rem;
    line-height: 1.45;
}

.cf-form-banner-info {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}

.cf-preview-topbar {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(45,106,106,.12), rgba(45,106,106,.04));
    border: 1px solid rgba(45,106,106,.16);
}

.cf-preview-topbar strong {
    display: block;
    font-size: 1rem;
}

.cf-preview-topbar p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 0.92rem;
}

.cf-preview-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.cf-preview-section-link {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.cf-preview-section-link.is-active,
.cf-preview-section-link:hover {
    border-color: var(--cf-primary, #2d6a6a);
    color: var(--cf-primary, #2d6a6a);
    background: rgba(45,106,106,.08);
}

.cf-preview-readonly input:disabled,
.cf-preview-readonly textarea:disabled,
.cf-preview-readonly input[readonly],
.cf-preview-readonly textarea[readonly] {
    opacity: 1;
    color: #0f172a;
    background: #f8fafc;
    cursor: default;
}

.cf-preview-signature {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 110px;
    padding: 16px 18px;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    background: #fff;
}

.cf-preview-signature-script {
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 1.6rem;
    color: #1e293b;
}

.cf-preview-signature-caption {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.cf-preview-marketing {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.86rem;
}

.cf-preview-demo-success {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    font-weight: 600;
}

.body-diagram.is-preview-readonly #bodyDiagram {
    pointer-events: none;
}

.cf-preview-mode .form-section {
    scroll-margin-top: 12px;
}

.cf-preview-readonly .form-section + .form-section {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}
    background: #f0f7f7;
    border: 1px solid #c5dede;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    text-align: center;
    color: #4a6a6a;
    font-size: 14px;
}

.cf-progress {
    margin: 0 0 28px;
    padding: 16px;
    border: 1px solid #dbe7e7;
    border-radius: 12px;
    background: #f8fbfb;
}

.cf-progress-track {
    height: 10px;
    border-radius: 999px;
    background: #dce8e8;
    overflow: hidden;
}

.cf-progress-fill {
    height: 100%;
    background: var(--cf-primary, #4A9B9B);
    transition: width 0.25s ease;
}

.cf-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #4a6a6a;
}

.cf-progress-section {
    margin: 6px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.cf-section-intro {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.cf-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(74, 155, 155, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.cf-section-description {
    margin: 4px 0 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.cf-field-help {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
}

.cf-choice-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cf-consent-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #d5e2e2;
    border-radius: 10px;
    background: #fff;
    font-weight: 500;
}

.cf-consent-check input {
    margin-top: 3px;
}

.signature-pad-compact {
    height: 140px !important;
    max-width: 420px;
    border-width: 1px !important;
    border-color: #cbd5e1 !important;
}

.cf-wizard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.btn-secondary {
    background: #fff;
    color: var(--cf-primary, #4A9B9B);
    border: 1px solid var(--cf-primary, #4A9B9B);
}

.cf-stack-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .cf-stack-mobile {
        grid-template-columns: 1fr;
    }
}

