/* Patient Form Styles */
:root {
    --primary-color: #6BB6D6;
    --primary-hover: #5BA5C5;
    --secondary-color: #6B7280;
    --danger-color: #dc3545;
    --success-color: #88C999;
    --warning-color: #ffc107;
    --medical-blue: #6BB6D6;
    --medical-light: #e3f2fd;
    --trust-blue: #6BB6D6;
    --warm-ivory: #FFF8F3;
    --soft-sage: #88C999;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--warm-ivory);
    min-height: 100vh;
    padding: 20px;
    direction: ltr;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        background: #ffffff;
    }
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0;
    background: white;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Desktop - full width like mobile */
@media (min-width: 769px) {
    .container {
        max-width: 100%;
        margin: 0;
    }
}

/* Mobile - full width */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        margin: 0;
        max-width: 100%;
    }
}

/* Clinic Header */
.clinic-header {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.clinic-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.clinic-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Top Section */
.clinic-header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.clinic-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-transform: none;
    letter-spacing: 0;
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: #4ade80;
}

/* Header Main Content */
.clinic-header-main {
    text-align: center;
    margin-bottom: 30px;
}

.clinic-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .clinic-title {
        font-size: 24px;
        margin-bottom: 6px;
    }
}

.clinic-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .clinic-subtitle {
        font-size: 14px;
    }
}

/* Stats Section */
.clinic-stats-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.clinic-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    flex: 0 0 1px;
}

@media (max-width: 768px) {
    .clinic-header {
        padding: 15px 10px;
    }

    .clinic-header-top {
        flex-direction: column;
        gap: 10px;
    }

    .trust-badge,
    .clinic-badge {
        width: fit-content;
        margin: 0 auto;
    }
    
    .clinic-header-top {
        margin-bottom: 15px;
    }
    
    .clinic-header-main {
        margin-bottom: 20px;
    }
    
    .clinic-badge {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .badge-icon {
        width: 14px;
        height: 14px;
    }
    
    .clinic-stats-wrapper {
        padding: 12px;
        border-radius: 12px;
    }
    
    .clinic-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    
    .stat-divider {
        height: 25px;
    }
}

/* Language Selector Container */
.language-selector-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    z-index: 999;
    display: none;
}

.language-selector-wrapper.active {
    display: block;
}

/* Language Selector in Header */
.language-selector-header {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

/* Standalone Language Selector (when header is hidden) */
.language-selector-standalone {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.language-selector-standalone.active {
    display: block;
}

body[dir="rtl"] .language-selector {
    right: auto;
    left: 15px;
}

body[dir="rtl"] .language-selector.standalone {
    right: auto;
    left: 20px;
}

.language-dropdown {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    min-width: 110px;
    transition: all 0.3s;
}

/* When inside clinic header */
.clinic-header .language-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}

.clinic-header .language-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.clinic-header .language-dropdown option {
    background: #1565c0;
    color: white;
}

/* Standalone dropdown */
.language-selector.standalone .language-dropdown {
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
}

.language-dropdown:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.1);
}

.language-dropdown option {
    background: white;
    color: #333;
    padding: 5px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .language-selector.standalone {
        top: 10px;
        right: 15px;
        padding: 3px;
    }
    
    .language-dropdown {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 100px;
    }
    
    /* Compact on mobile */
    .language-dropdown option {
        font-size: 14px;
    }
}

/* Progress Bar */
.progress-container {
    padding: 20px 30px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: margin-top 0.3s ease;
}

.progress-container .progress-steps {
    max-width: 900px;
    margin: 0 auto;
}

/* Add spacing when language selector is standalone */
.progress-container.with-language-selector {
    margin-top: 60px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-line-active {
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.step-title {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Mobile step adjustments */
@media (max-width: 768px) {
    .step-title {
        display: none;
    }

    .progress-container {
        padding: 10px 15px;
        background: white;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .progress-steps {
        padding: 0;
    }

    .step {
        padding: 0 2px;
        flex: 1;
        min-width: 0;
    }

    .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
        font-weight: 600;
    }

    .progress-line {
        height: 2px;
        top: 14px;
    }

    .progress-line-active {
        height: 2px;
    }
}

/* Required Field Indicators */
.required-indicator,
.required-asterisk {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
    font-size: 16px;
}

.required-field-note {
    background: #fff3cd;
    border-left: 4px solid #dc3545;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}

.required-field-note::before {
    content: "⚠️ ";
    margin-right: 5px;
}

label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.input-group.required .input-label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-control.required-error,
.treatment-card.required-error,
select.required-error,
textarea.required-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

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

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

/* Form Container */
.form-container {
    padding: 25px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .form-container {
        padding: 15px;
        max-width: 100%;
    }
}

/* Form Fields Layout */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group.full-width {
    width: 100%;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* Section Styling */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* Navigation */
.flex.justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .flex.justify-between {
        margin-top: 20px;
        padding-top: 15px;
    }
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.section-title {
    font-size: 26px;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e88e5 0%, #1565c0 100%);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
    }
}

/* Health Tourism Certificate */
.health-certificate-section {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.certificate-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #00A19C;
    box-shadow: 0 4px 15px rgba(0, 161, 156, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.certificate-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 161, 156, 0.2);
}

.certificate-img-small {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.certificate-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.certificate-title {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
}

.certificate-text {
    font-size: 13px;
    color: #00A19C;
    font-weight: 700;
}

.certificate-click-text {
    font-size: 10px;
    color: #007bff;
    font-style: italic;
    margin-top: 2px;
}

/* Certificate Lightbox */
.certificate-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.certificate-lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.certificate-img-large {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ff6b6b;
}

/* Treatment Cards */
.treatment-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.treatment-card {
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.treatment-card.required-error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
    animation: shake 0.5s;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e88e5 0%, #1565c0 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.treatment-card:hover {
    border-color: #1e88e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.12);
}

.treatment-card:hover::before {
    transform: scaleX(1);
}


.treatment-card.selected {
    border-color: #1e88e5;
    background: #f0f7ff;
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.1);
}

.treatment-card.selected::before {
    transform: scaleX(1);
}



.treatment-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.treatment-desc {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.5;
}

.treatment-features {
    list-style: none;
    text-align: left;
    font-size: 14px;
    color: #4a5568;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    margin-top: 15px;
}

.treatment-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
}

.treatment-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: #1e88e5;
    border-radius: 50%;
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.input-field:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: white;
}

@media (max-width: 768px) {
    .input-field {
        padding: 10px 12px;
        font-size: 16px; /* iOS zoom engellemek için minimum 16px olmalı */
    }
}

.input-field.error,
input.error,
textarea.error,
select.error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
    animation: shake 0.5s;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

.input-field.error:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Required field indicator */
.required-field {
    color: #dc3545;
    font-weight: 600;
    font-size: 18px;
    margin-left: 3px;
}

.required-asterisk {
    color: #dc3545;
    font-weight: bold;
    font-size: 16px;
    margin-left: 4px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2d3748;
    font-size: 15px;
}

.form-group label .required {
    color: #dc3545;
    margin-left: 4px;
    font-size: 18px;
}

.field-label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 15px;
}

.field-label .asterisk {
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
    margin-left: 3px;
}

/* Validation message */
.validation-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: none;
    padding: 8px 12px;
    background: #fee;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

.validation-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.error-summary {
    background: #fee;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
}

.error-summary.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.error-summary h4 {
    color: #dc3545;
    margin-bottom: 10px;
    font-size: 16px;
}

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

.error-summary li {
    color: #721c24;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.error-summary li:before {
    content: '•';
    color: #dc3545;
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

/* Phone Input */
.phone-input-container {
    display: flex;
    gap: 8px;
}

.phone-code {
    min-width: 85px;
    max-width: 85px;
    flex-shrink: 0;
    padding: 14px 6px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f5f5f5;
    color: #6b7280;
    text-align: center;
}

.phone-input {
    flex: 1;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.phone-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

@media (max-width: 768px) {
    .phone-code {
        min-width: 75px;
        max-width: 75px;
        padding: 14px 4px;
        font-size: 13px;
    }
}

.phone-code.error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
}

/* Gender Selection */
.gender-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gender-selection-horizontal {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .gender-selection-horizontal {
        display: flex;
        gap: 10px;
    }
    
    .gender-selection-horizontal .gender-option {
        flex: 1;
    }
}

.gender-option input {
    display: none;
}

.gender-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-size: 14px;
    font-weight: 500;
}

.gender-card:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.gender-option input:checked + .gender-card {
    border-color: #0066cc;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    font-weight: 600;
}

@media (max-width: 768px) {
    .gender-card {
        padding: 12px;
        font-size: 13px;
    }
}

.gender-card.error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
    animation: shake 0.5s;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

.gender-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

/* Question Cards */
.question-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.question-card.has-error {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    user-select: none;
}

.checkbox-item:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.checkbox-item.checked {
    background: #e8f5e9;
    border-color: #28a745;
}

.checkbox-item input[type="checkbox"]:checked + label {
    font-weight: 600;
}

@media (max-width: 768px) {
    .checkbox-item {
        padding: 8px 10px;
        font-size: 13px;
    }
}

.checkbox-item input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item input:checked {
    accent-color: #1e88e5;
}

.checkbox-item.error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
    animation: shake 0.5s;
}

.consent-card[style*="border"] {
    animation: shake 0.5s;
}

/* Force red border on all error states */
*[style*="border-color: rgb(220, 53, 69)"] {
    background: #fff5f5 !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 12px 28px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Alert Warning */
.alert-warning {
    background: #fff3cd;
    color: #856404;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    font-size: 14px;
    line-height: 1.5;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: none;
}

.alert-danger.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Alert Modal */
.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.alert-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.alert-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.success-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.success-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

/* Medical Theme Success Modal */
.success-content.medical-theme {
    max-width: 540px;
    padding: 0;
    overflow: hidden;
}

.medical-success-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 20px auto;
}

.pulse-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid #00A19C;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    80%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.icon-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 10px;
    background: linear-gradient(135deg, #00A19C 0%, #008580 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 161, 156, 0.3);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-header {
    text-align: center;
    padding: 0 30px;
    margin-bottom: 25px;
}

.success-title {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #00A19C 0%, #00796B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px;
    text-align: center;
}

.success-subtitle {
    font-size: 15px;
    color: #6c757d;
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.5;
}

.application-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.application-card .card-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-card .card-content {
    text-align: center;
}

.application-card .card-label {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 500;
}

.application-card .card-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #00A19C;
    letter-spacing: 1px;
}

/* Info Sections Side by Side */
.info-sections-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px auto;
    max-width: 900px;
}

@media (max-width: 768px) {
    .info-sections-container {
        grid-template-columns: 1fr;
    }
}

.info-summary {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #2c3e50;
}

.summary-content {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

.next-steps {
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.steps-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #00796b;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #00A19C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-text {
    font-size: 14px;
    color: #2c3e50;
}

.contact-reminder {
    margin: 20px auto;
    padding: 18px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    border: 1px solid #ffe0b2;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.1);
}

.contact-reminder div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-reminder strong {
    font-size: 12px;
    color: #f57c00;
}

.contact-reminder span {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-print {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-print:hover {
    background: #f8f9fa;
    border-color: #00A19C;
    color: #00A19C;
}

.btn-close-modal {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #00A19C 0%, #008580 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 161, 156, 0.4);
}

/* Step 7 - Modern Confirmation Page */
.confirmation-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Success Animation */
.success-container {
    text-align: center;
    margin-bottom: 40px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(76, 175, 80, .5);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #FFFFFF;
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

.success-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.success-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 0;
}

/* Main Content Grid */
.confirmation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .confirmation-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Info Cards */
.info-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-card.primary-card {
    border: 2px solid #0066cc;
}

.card-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header svg {
    width: 24px;
    height: 24px;
    color: #0066cc;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.info-row {
    margin-bottom: 20px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row label {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-row span {
    display: block;
    font-size: 15px;
    color: #212529;
    font-weight: 600;
}

.value-highlight {
    font-size: 22px;
    font-weight: 700;
    color: #0066cc;
    letter-spacing: 1px;
}

.token-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* END OF OLD STYLES */

.token-value {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    letter-spacing: 1px;
}

.copy-button {
    padding: 8px;
    background: #0066cc;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.copy-button:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.copy-button.copied {
    background: #28a745;
}

.copy-button svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.alert-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin-top: 15px;
}

.alert-info span {
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 25px;
    bottom: 10px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
}

.timeline-dot.active {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
}

/* Contact Card */
.contact-card .card-header {
    background: #0066cc;
    border-bottom: none;
}

.contact-card .card-header svg {
    color: white;
    fill: white;
}

.contact-card .card-header h3 {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item strong {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p {
    margin: 0;
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.6;
}

.contact-item a {
    color: #0066cc;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phone-numbers a {
    font-weight: 600;
}

/* Action Buttons */
.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-action svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.btn-primary:hover {
    background: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #0066cc;
    border-color: #0066cc;
}

.btn-outline:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    gap: 10px;
}

.summary-grid > div {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-grid > div:last-child {
    border-bottom: none;
}

.summary-grid strong {
    font-size: 13px;
    color: #6c757d;
    margin-right: 10px;
}

.summary-grid span {
    font-size: 14px;
    color: #2c3e50;
}

.token-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    margin: 25px auto;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.token-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #0066cc;
}

.token-header svg {
    stroke: #0066cc;
}

.token-display {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.token-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.token-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    color: #0066cc;
    margin: 10px 0;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #0066cc;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.token-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #856404;
}

.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 30px auto;
    max-width: 500px;
}

.btn-print, .btn-email, .btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 140px;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid;
}

.btn-print {
    background: white;
    border-color: #e9ecef;
    color: #6c757d;
}

.btn-print:hover {
    background: #f8f9fa;
    border-color: #00A19C;
    color: #00A19C;
}

.btn-email {
    background: white;
    border-color: #e9ecef;
    color: #6c757d;
}

.btn-email:hover {
    background: #e7f3ff;
    border-color: #2196F3;
    color: #2196F3;
}

.btn-home {
    background: #00A19C;
    border-color: #00A19C;
    color: white;
}

.btn-home:hover {
    background: #008580;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 161, 156, 0.3);
}

/* Photo Upload */
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
}

@media (max-width: 768px) {
    .photo-upload-area {
        min-height: 100px;
        padding: 15px;
    }
}

.photo-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0,161,156,0.05);
}

.photo-upload-area.photo-upload-required {
    border-color: #ffcccc;
    border-width: 2px;
    background-color: #fff5f5;
}

.photo-upload-area.photo-upload-required.has-photo {
    border-color: #4CAF50;
    background-color: #f0fff4;
}

.photo-required {
    color: #dc3545;
    font-weight: bold;
}

.photo-preview {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: none;
    margin: 0 auto;
}

.photo-preview.active {
    display: block;
}

/* Photo upload area with image */
.photo-upload-area.has-photo {
    padding: 10px;
}

.photo-upload-area.has-photo .photo-upload-placeholder {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply smooth animations to Step 7 elements */
.form-step[data-step="7"].active .medical-success-icon {
    animation: fadeInUp 0.6s ease-out;
}

.form-step[data-step="7"].active .success-header {
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.form-step[data-step="7"].active .token-card {
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

.form-step[data-step="7"].active .application-card {
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.form-step[data-step="7"].active .info-summary {
    animation: fadeInUp 0.7s ease-out 0.4s both;
}

.form-step[data-step="7"].active .next-steps {
    animation: fadeInUp 0.7s ease-out 0.5s both;
}

.form-step[data-step="7"].active .contact-reminder {
    animation: fadeInUp 0.7s ease-out 0.6s both;
}

.form-step[data-step="7"].active .confirmation-actions {
    animation: fadeInUp 0.7s ease-out 0.7s both;
}

/* Responsive */
@media (max-width: 768px) {
    .clinic-header {
        padding: 20px 15px;
    }
    
    .treatment-cards {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .gender-selection {
        grid-template-columns: 1fr;
    }
    
    .photo-upload-grid {
        grid-template-columns: 1fr;
    }
    
    /* Step 7 Responsive Styles */
    .confirmation-page {
        padding: 20px 15px;
    }
    
    .medical-success-icon {
        width: 80px;
        height: 80px;
        margin: 15px auto;
    }
    
    .pulse-ring {
        width: 80px;
        height: 80px;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .icon-circle svg {
        width: 35px;
        height: 35px;
    }
    
    .success-title {
        font-size: 20px;
    }
    
    .success-subtitle {
        font-size: 14px;
    }
    
    .token-card {
        padding: 15px;
        margin: 15px 10px;
    }
    
    .token-value {
        font-size: 18px;
    }
    
    .application-card,
    .info-summary,
    .next-steps,
    .contact-reminder {
        margin: 15px 10px;
        padding: 15px;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }
    
    .btn-print, .btn-email, .btn-home {
        width: 100%;
        min-width: unset;
    }
    
    .steps-list .step-item {
        padding: 10px;
        font-size: 14px;
    }
    
    .contact-reminder {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility Classes */
.mt-3 { margin-top: 12px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mr-2 { margin-right: 8px; }
.space-x-4 > * + * { margin-left: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.items-center { align-items: center; }
.grid { display: grid; }
.gap-4 { gap: 16px; }
.col-span-2 { grid-column: span 2; }
.text-sm { font-size: 14px; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.block { display: block; }
.w-full { width: 100%; }

/* ========================================
   STEP 7 - MODERN CONFIRMATION PAGE REDESIGN
   ======================================== */

/* Header Section */
.confirmation-header {
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
}

.clinic-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.clinic-info h1 {
    font-size: 28px;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
}

.clinic-info p {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Success Badge */
.success-badge {
    margin-top: 30px;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #10b981;
    stroke-miterlimit: 10;
    animation: scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

.success-badge h2 {
    font-size: 26px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.success-badge p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Confirmation Body */
.confirmation-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

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

/* Confirmation Cards */
.confirmation-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.confirmation-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.confirmation-card.primary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.confirmation-card.primary-card h3,
.confirmation-card.primary-card .detail-label,
.confirmation-card.primary-card .detail-value,
.confirmation-card.primary-card .token-hint {
    color: white !important;
}

.confirmation-card.contact-card {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .confirmation-card.contact-card {
        grid-column: span 1;
    }
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.primary-card .card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #667eea;
}

.primary-card .card-icon svg {
    stroke: white;
}

.confirmation-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

/* Application Details */
.application-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.app-number {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.primary-card .app-number {
    color: #fbbf24;
}

/* Token Section */
.token-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.token-section label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.token-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.token-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.copy-btn.copied {
    background: #10b981;
}

.token-hint {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.9;
    font-style: italic;
}

/* Barcode Section */
.barcode-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

#barcodeCanvas {
    max-width: 100%;
    height: auto;
}

.barcode-text {
    margin-top: 8px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Patient Details */
.patient-details {
    display: grid;
    gap: 12px;
}

.patient-details .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.patient-details .info-row:last-child {
    border-bottom: none;
}

.patient-details label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.patient-details span {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

/* Timeline Steps */
.steps-timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 35px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: -35px;
    top: 0;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
}

.timeline-marker.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.timeline-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Contact Details */
.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item svg {
    flex-shrink: 0;
    stroke: #667eea;
    fill: none;
}

.contact-item svg[fill] {
    fill: #667eea;
    stroke: none;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer Actions */
.confirmation-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: #f3f4f6;
    color: #1a1a1a;
}

.secondary-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Print Styles */
@media print {
    .confirmation-wrapper {
        box-shadow: none;
        border-radius: 0;
    }
    
    .confirmation-footer {
        display: none;
    }
    
    .confirmation-card:hover {
        box-shadow: none;
        transform: none;
    }
}

.for-print .confirmation-footer {
    display: none !important;
}

.for-print .confirmation-card {
    break-inside: avoid;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clinic-logo {
        flex-direction: column;
    }
    
    .confirmation-wrapper {
        padding: 20px;
        border-radius: 0;
    }
    
    .confirmation-footer {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ========================================
   STEP 7 - COMPACT HOSPITAL STYLE REDESIGN
   ======================================== */

/* Reset old styles */
.confirmation-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Compact Header */
.confirmation-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h2 {
    font-size: 18px;
    color: #111827;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.header-title p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.header-status svg {
    width: 40px;
    height: 40px;
}

/* Compact Content Grid */
.confirmation-content-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Info Sections */
.info-section {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 12px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.info-content {
    font-size: 13px;
}

/* Info Items */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.info-label {
    color: #6b7280;
    font-size: 12px;
}

.info-value {
    color: #111827;
    font-weight: 600;
    font-size: 13px;
}

/* Token Box */
.token-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.token-value {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

.copy-button {
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 4px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.copy-button:hover {
    background: #f3f4f6;
}

.copy-button svg {
    width: 14px;
    height: 14px;
    stroke: #6b7280;
}

.copy-button.copied {
    background: #dcfce7;
    border-color: #86efac;
}

/* Barcode */
.barcode-container {
    text-align: center;
    padding: 10px 0;
    margin-top: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

#barcodeCanvas {
    max-width: 100%;
    height: auto;
}

.barcode-number {
    font-size: 10px;
    font-family: 'Courier New', monospace;
    color: #6b7280;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Patient Info - Compact like Contact Info */
.patient-info-row {
    margin-bottom: 6px;
    font-size: 12px;
}

.patient-info-row:last-child {
    margin-bottom: 0;
}

.patient-label {
    color: #6b7280;
    font-weight: 500;
    margin-right: 5px;
}

.patient-value {
    color: #111827;
}

/* Old patient details - kept for backward compatibility */
.patient-details .info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
}

.patient-details .info-row:last-child {
    border-bottom: none;
}

.patient-details label {
    font-size: 12px;
    color: #6b7280;
}

.patient-details span {
    font-size: 12px;
    color: #111827;
    font-weight: 500;
}

/* Steps */
.step-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 20px;
    height: 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
}

.step-text strong {
    display: block;
    font-size: 12px;
    color: #111827;
    margin-bottom: 2px;
}

.step-text small {
    display: block;
    font-size: 11px;
    color: #6b7280;
    font-weight: normal;
}

/* Contact Info */
.contact-row {
    margin-bottom: 6px;
    font-size: 12px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row strong {
    color: #6b7280;
    font-weight: 500;
}

.contact-row span {
    color: #111827;
}

/* Actions */
.confirmation-actions-compact {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
}

.btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-compact:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-compact svg {
    width: 16px;
    height: 16px;
    stroke: #6b7280;
}

.btn-print {
    background: #f3f4f6;
}

.btn-download {
    background: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

.btn-download:hover {
    background: #111827;
    border-color: #111827;
}

.btn-download svg {
    stroke: #ffffff;
}

/* Print Styles */
@media print {
    /* Hide unnecessary elements */
    .progress-container,
    .clinic-header,
    .language-selector,
    .form-navigation,
    .progress-steps {
        display: none !important;
    }
    
    .confirmation-wrapper {
        border: none;
        padding: 10px;
        max-width: 100%;
    }
    
    .confirmation-actions-compact {
        display: none !important;
    }
    
    .copy-button {
        display: none !important;
    }
    
    .info-section {
        border: 1px solid #d1d5db;
        break-inside: avoid;
        padding: 8px;
    }
    
    .confirmation-content-compact {
        gap: 10px;
    }
    
    .section-title {
        font-size: 12px;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    
    .info-content {
        font-size: 10px;
    }
    
    .token-value {
        font-size: 10px;
    }
    
    .info-item {
        margin-bottom: 4px;
    }
    
    .step-item {
        margin-bottom: 6px;
    }
    
    .contact-row {
        margin-bottom: 4px;
        font-size: 10px;
    }
}

.for-print .confirmation-actions-compact {
    display: none !important;
}

.for-print .copy-button {
    display: none !important;
}

.for-print .progress-container,
.for-print .clinic-header,
.for-print .language-selector,
.for-print .form-navigation,
.for-print .progress-steps {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .confirmation-content-compact {
        grid-template-columns: 1fr;
    }
    
    .confirmation-header-compact {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .confirmation-actions-compact {
        flex-direction: column;
    }
    
    .btn-compact {
        width: 100%;
        justify-content: center;
    }
}


/* ========================================
   STEP 1 - IMPROVED TREATMENT SELECTION
   ======================================== */

/* Patient Info Box */
.patient-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.1);
}

.greeting {
    font-size: 20px;
    font-weight: 700;
    color: #14532d;
    margin-bottom: 15px;
}

.info-text {
    color: #166534;
    line-height: 1.8;
    font-size: 15px;
    font-weight: 500;
}

.info-text strong {
    color: #166534;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
}

/* Treatment Selection */
.treatment-selection {
    margin-top: 30px;
}

.selection-prompt {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    text-align: center;
}

/* Treatment Cards */
.treatment-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

.treatment-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.treatment-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.treatment-card:hover::before {
    transform: scaleX(1);
}

.treatment-card.selected {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2);
}

.treatment-card.selected::before {
    background: #22c55e;
    transform: scaleX(1);
}

.treatment-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.treatment-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.5;
}

.treatment-features {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.treatment-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    list-style: none !important;
}

.treatment-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 5px;
    color: #9ca3af;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.treatment-features li::marker {
    display: none !important;
}

/* Hide checkmark selection indicator - only use border for selection */
.treatment-card input[type="radio"] {
    display: none !important;
}

.treatment-card::after {
    display: none !important;
}

/* Language Selector Fix */
.language-selector {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

@media (max-width: 768px) {
    .language-selector {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 10px;
    }
}

/* Hide required field note in Step 1 */
.form-step[data-step='1'] .required-field-note {
    display: none;
}

/* ========================================
   AUTO-SAVE INDICATORS & DRAFT SYSTEM
   ======================================== */

/* Auto-save indicator */
.saving-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--warm-ivory);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

.saving-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.saving-indicator.saved {
    background: var(--soft-sage);
    border-color: var(--success-color);
    color: #fff;
}

/* Draft loaded message */
.draft-loaded-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--soft-sage);
    color: white;
    border-radius: 12px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.draft-loaded-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   TRUST ELEMENTS & SECURITY BADGES
   ======================================== */

/* Trust badge - 30K+ patients */
.trust-badge {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(107, 182, 214, 0.3);
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Security note */
.security-note {
    background: rgba(107, 182, 214, 0.1);
    border: 1px solid rgba(107, 182, 214, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--trust-blue);
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-note::before {
    content: '🔒';
    font-size: 14px;
}

/* Progress bar time estimation */
.progress-time-estimation {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.progress-time-estimation::before {
    content: '⏱️';
    font-size: 14px;
}

/* ========================================
   MOTIVATIONAL MESSAGES
   ======================================== */

/* Step transition messages */
.motivational-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid var(--soft-sage);
    border-radius: 16px;
    padding: 25px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.4s ease;
    text-align: center;
    max-width: 300px;
}

.motivational-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.motivational-message .message-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.motivational-message .message-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* ========================================
   BUTTON IMPROVEMENTS
   ======================================== */

/* Enhanced button styling with rounded corners */
.btn-primary, .btn-secondary, .btn-outline, .form-navigation button {
    border-radius: 12px !important; /* More rounded corners */
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    left: 100%;
}

/* "Daha Sonra Tamamla" button styling */
.btn-later-complete {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-later-complete:hover {
    background: #e5e7eb !important;
    color: #4b5563 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Update existing form buttons */
.form-navigation .btn-outline {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.form-navigation .btn-outline:hover {
    background: #e5e7eb;
    color: #4b5563;
}

/* ========================================
   NEW STEP TITLES STYLING
   ======================================== */

/* Enhanced step titles */
.progress-steps .step .step-title {
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.progress-steps .step.active .step-title {
    color: var(--primary-color);
    font-weight: 700;
}

.progress-steps .step.completed .step-title {
    color: var(--soft-sage);
}

/* Step number enhancements */
.progress-steps .step-number {
    background: white;
    border: 2px solid #e5e7eb;
    color: #9ca3af;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.progress-steps .step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.progress-steps .step.completed .step-number {
    background: var(--soft-sage);
    border-color: var(--soft-sage);
    color: white;
}

/* ========================================
   RESPONSIVE MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
    .saving-indicator {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .trust-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .security-note {
        font-size: 11px;
        padding: 6px 10px;
    }

    .progress-time-estimation {
        font-size: 11px;
    }

    .motivational-message {
        padding: 20px 25px;
        max-width: 280px;
    }

    .motivational-message .message-text {
        font-size: 16px;
    }

    .draft-loaded-message {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* ========================================
   LOADING OVERLAY STYLES
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.loading-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-content {
    text-align: center;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.medical-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.loader-circle {
    width: 120px;
    height: 120px;
    position: relative;
}

.loader-circle .circular {
    animation: rotate 2s linear infinite;
    height: 120px;
    width: 120px;
}

.loader-circle .path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke: var(--medical-blue);
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

.loader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--medical-blue);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.7;
    }
}

.loading-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.loading-text p {
    font-size: 14px;
    color: #64748b;
}

/* Mobile optimizations for loading overlay */
@media (max-width: 768px) {
    .medical-loader {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .loader-circle {
        width: 100px;
        height: 100px;
    }

    .loader-circle .circular {
        height: 100px;
        width: 100px;
    }

    .loader-icon svg {
        width: 24px;
        height: 24px;
    }

    .loading-text h3 {
        font-size: 20px;
    }

    .loading-text p {
        font-size: 13px;
    }
}

/* Submit Button - Final Step Attention Grabbing Style */
.submit-button-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0.95) 80%, transparent 100%);
    padding: 30px 20px 40px;
    margin-top: 40px;
    z-index: 100;
}

.btn-submit-final {
    width: 100%;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #00A19C 0%, #008B87 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 161, 156, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-submit-final:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit-final:hover:before {
    left: 100%;
}

.btn-submit-final:hover {
    background: linear-gradient(135deg, #008B87 0%, #007772 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 161, 156, 0.5);
}

.btn-submit-final:active {
    transform: translateY(0);
    box-shadow: 0 5px 20px rgba(0, 161, 156, 0.4);
}

.submit-icon {
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

.submit-arrow {
    font-size: 24px;
    animation: slideRight 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Mobile specific */
@media (max-width: 768px) {
    .submit-button-container {
        padding: 25px 15px 35px;
        margin-top: 30px;
    }
    
    .btn-submit-final {
        padding: 18px 25px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .submit-icon, .submit-arrow {
        font-size: 20px;
    }
}

/* Navigation buttons for other steps */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.navigation-buttons .btn-secondary {
    flex: 0 0 auto;
}

.navigation-buttons .btn-primary {
    flex: 0 0 auto;
}

/* Language Selector Below Subtitle */
.clinic-header-main .language-selector-header {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 15px;
    display: inline-block;
}

.clinic-header-main .language-dropdown {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.clinic-header-main .language-dropdown:hover {
    border-color: #00A19C;
    box-shadow: 0 2px 8px rgba(0, 161, 156, 0.15);
}

.clinic-header-main .language-dropdown:focus {
    outline: none;
    border-color: #00A19C;
    box-shadow: 0 0 0 3px rgba(0, 161, 156, 0.1);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .clinic-header-main .language-selector-header {
        margin-top: 12px;
        width: 100%;
        text-align: center;
    }
    
    .clinic-header-main .language-dropdown {
        width: 100%;
        max-width: 200px;
        padding: 10px 15px;
        font-size: 15px;
    }
    
    /* Center the subtitle and language selector on mobile */
    .clinic-subtitle {
        text-align: center;
        margin-bottom: 0;
    }
}

/* Desktop specific */
@media (min-width: 769px) {
    .clinic-header-main .language-selector-header {
        margin-top: 12px;
    }
    
    .clinic-header-main {
        text-align: center;
    }
    
    .clinic-header-main .language-dropdown {
        min-width: 180px;
    }
}

/* Navigation buttons bottom spacing */
.flex.justify-between.mt-8,
.flex.justify-end.mt-8 {
    margin-bottom: 20px !important;
    padding-bottom: 20px;
}

/* Alternative: Add spacing to all navigation button containers */
.form-step .flex.justify-between,
.form-step .flex.justify-end {
    margin-bottom: 20px !important;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    .flex.justify-between.mt-8,
    .flex.justify-end.mt-8 {
        margin-bottom: 25px !important;
        padding-bottom: 20px;
    }
}

/* ============================================
   MOBİL SABİT NAVİGASYON BUTONLARI
   iPhone ve Android için alta sabit menü
   ============================================ */
@media (max-width: 768px) {
    /* Navigasyon butonlarını mobilde alta sabitle */
    .form-step .flex.justify-between.mt-8,
    .form-step .navigation-buttons,
    .form-step > .flex.justify-between:last-child {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 15px 20px !important;
        padding-bottom: calc(15px + env(safe-area-inset-bottom)) !important; /* iPhone X+ için */
        background: white !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
        border-top: 1px solid #e5e7eb !important;
        z-index: 1000 !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    /* Butonları eşit genişlikte yap */
    .form-step .flex.justify-between.mt-8 button,
    .form-step .navigation-buttons button,
    .form-step .flex.justify-between.mt-8 .btn-primary,
    .form-step .flex.justify-between.mt-8 .btn-secondary,
    .form-step .navigation-buttons .btn-primary,
    .form-step .navigation-buttons .btn-secondary {
        flex: 1 !important;
        min-height: 50px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
    }

    /* Form içeriğine alt padding ekle - butonların arkasında kalmasın */
    .form-step {
        padding-bottom: 100px !important;
    }

    /* Aktif step için padding */
    .form-step.active {
        padding-bottom: 110px !important;
    }

    /* Step 7 (onay sayfası) için özel durum - buton yok */
    .form-step[data-step="7"] {
        padding-bottom: 20px !important;
    }
}

/* iOS Safari için input zoom engelleme - tüm form elemanları */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important; /* iOS 16px altında zoom yapıyor */
    }

    /* Touch action - pinch zoom engelle */
    .form-container {
        touch-action: pan-x pan-y;
    }
}

/* ============================================
   STEP 1 - DEVAM ET BUTONU TAM GENİŞLİK
   ============================================ */
@media (max-width: 768px) {
    /* Step 1'de sadece Devam butonu var - tam genişlik yap */
    .form-step[data-step="1"] .flex.justify-end.mt-8 {
        justify-content: stretch !important;
    }

    .form-step[data-step="1"] .flex.justify-end.mt-8 .btn-primary,
    .form-step[data-step="1"] #step1NextBtn {
        width: 100% !important;
        flex: 1 !important;
        min-height: 56px !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        border-radius: 14px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}
