

/* Main Section */
.esonuc-section {
    padding: 80px 0;
    background: var(--global--color-gray);
    min-height: 100vh;
}

/* Card Styles */
.esonuc-card {
    background: var(--global--color-white);
    border-radius: 8px;
}
.nice-select.open .list{
    width: 100%;
    max-height:300px;
    overflow:auto;
}
/* Header Styles */
.esonuc-header {
    color: var(--global--color-white);
    padding: 40px;
    border-bottom: 1px solid var(--global--color-gray-light);
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: var(--global--color-primary);
    color: var(--global--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.header-content {
    flex: 1;
}

.header-title {
    font-family: var(--global--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Form Section */
.esonuc-form-section {
    padding: 40px;
}


.esonuc-form .form-group {
    margin-bottom: 30px;
}

.esonuc-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--global--color-heading);
    margin-bottom: 12px;
    font-size: 1rem;
}

.esonuc-form label i {
    color: var(--global--color-primary);
    font-size: 1.1rem;
}

.form-control {
    transition: all 0.3s ease;
    width: 100%;
    padding:0;
    padding-left:20px;
    margin:0;
    font-family: var(--global--font-body);
}

.form-control:focus {
    border-color: var(--global--color-primary);
    box-shadow: 0 0 0 3px rgba(19, 197, 221, 0.15);
    outline: none;
}

.form-control:invalid {
    border-color: var(--global--color-error);
    box-shadow:none;
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
}
.esonuc-form-section label{
    font-weight:400;
    font-size:14px;
}
.esonuc-form-section .form-group{
    margin-bottom:30px;
    gap:2px;
    position:relative;
    display:grid;
}

.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--global--color-white);
    padding-right: 60px;
    cursor: pointer;
    width: 100%;
    background-image: none;
}

.custom-select-wrapper select:focus {
    background: var(--global--color-white);
}

/* Consent Section */
.consent-section {
    display: flex;
    flex-direction: column;
}

.consent-item {
    margin-bottom: 20px;
}

.consent-item:last-child {
    margin-bottom: 0;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox label {
    cursor: pointer;
    display: flex;
    margin: 0;
    position: relative;
    font-weight: 400;
    line-height: 1.5;
    width: 100%;
    gap:5px;
    align-items:center;
}

.custom-checkbox label::before {
    content: '';
    width: 25px;
    height: 25px;
    border: 2px solid var(--global--color-gray-light);
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    background: var(--global--color-white);
}

.custom-checkbox input[type="checkbox"]:checked + label::before {
    background: var(--global--color-primary);
    border-color: var(--global--color-primary);
}

.custom-checkbox input[type="checkbox"]:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 7 Pro';
    position: absolute;
    left: 8px;
    top: 10px;
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.consent-text {
    color: var(--global--color-body);
    font-size: 0.80rem;
}

.consent-link {
    color: var(--global--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.consent-link:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--global--color-gray-light);
    color: var(--global--color-body);
}

.btn-outline-secondary:hover {
    background: var(--global--color-gray-light);
}

.btn-loader {
    display: none;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    display: block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    color: var(--global--color-error);
    font-size: 0.8rem;
    display: none;
    position: absolute;
    right: 31px;
    top: 44px;
    pointer-events:none;
}

.error-message.show {
    display: block;
}

/* Result Section */
.esonuc-result-section {
    padding: 40px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.result-header .result-icon {
    width: 60px;
    height: 60px;
    background: var(--global--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-right: 20px;
    display: none;
}

.result-content h3 {
    font-family: var(--global--font-heading);
    font-size: 1.8rem;
    color: var(--global--color-heading);
    margin: 0 0 5px 0;
}

.result-subtitle {
    color: var(--global--color-body);
    margin: 0;
}

.btn-back {
    padding: 10px 20px;
    font-size: 0.9rem;
    display: block;
}

/* Hospital Info */
.hospital-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.hospital-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--global--color-heading);
    margin-bottom: 20px;
}

.hospital-header i {
    color: var(--global--color-primary);
}

.patient-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.patient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.patient-label {
    font-weight: 600;
    color: var(--global--color-body);
}

.patient-value {
    font-weight: 600;
    color: var(--global--color-heading);
}

/* Test Results */
.test-results {
    background: var(--global--color-white);
    overflow: hidden;
}

.results-header {
    color: white;
    padding: 25px;
}

.results-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.results-list-wrapper {
    padding: 20px;
}

.result-item {
    background: var(--global--color-white);
    border: 1px solid var(--global--color-gray-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--global--color-heading);
    margin: 0;
}

.result-date {
    color: var(--global--color-body);
    font-size: 0.9rem;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.result-detail-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
}

.result-label {
    font-weight: 500;
    color: var(--global--color-body);
}

.result-value {
    font-weight: 600;
    color: var(--global--color-heading);
}

.result-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-view-pdf {
    background: var(--global--color-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view-pdf:hover {
    background: var(--global--color-secondary);
    transform: translateY(-1px);
}

/* Status Colors */
.status-completed {
    color: var(--global--color-success) !important;
}

.status-pending {
    color: var(--global--color-warning) !important;
}

.status-cancelled {
    color: var(--global--color-error) !important;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--global--color-body);
}

.no-results i {
    font-size: 3rem;
    color: var(--global--color-gray-light);
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: var(--global--color-white);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--global--color-gray-light);
}
.modal-header button{
    font-size: 1.8rem;
}
.modal-header.error-header {
    background: #dc3545;
    color: white;
    border: none;
}

.modal-header.success-header {
    background: #28a745;
    color: white;
    border: none;
}

.modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(19, 197, 221, 0.1);
    color: var(--global--color-primary);
}

.error-header .modal-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.success-header .modal-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-title {
    font-family: var(--global--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.modal-body {
    padding: 30px;
    color: var(--global--color-body);
    line-height: 1.6;
}

.help-info {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.help-info i {
    color: var(--global--color-primary);
}

.attempts-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
}

.attempts-info i {
    color: #ffc107;
}

/* Password Input Group */
.password-input-group {
    margin-bottom: 20px;
}

.password-input {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.resend-section {
    text-align: center;
    margin-top: 20px;
}

.resend-info {
    color: var(--global--color-body);
    margin: 0;
}

.resend-info a {
    color: var(--global--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.resend-info a:hover {
    text-decoration: underline;
}

.countdown {
    color: var(--global--color-body);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Loading Animation */
.loading-animation {
    text-align: center;
    margin: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--global--color-gray-light);
    border-top: 4px solid var(--global--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* KVKK Content */
.kvkk-content {
    max-height: 400px;
    overflow-y: auto;
}

.kvkk-content h5 {
    color: var(--global--color-heading);
    font-family: var(--global--font-heading);
    margin-bottom: 20px;
}

.kvkk-content h6 {
    color: var(--global--color-heading);
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.kvkk-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .esonuc-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .esonuc-form-section,
    .esonuc-result-section {
        padding: 20px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .patient-info {
        grid-template-columns: 1fr;
    }
    
    .patient-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .result-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-actions {
        justify-content: center;
    }
    
    .modal-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .btn-large {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .header-title {
        font-size: 1.3rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }

    
    .custom-checkbox label {
        font-size: 0.9rem;
    }
}

/* Hover Effects */
.esonuc-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-control:hover {
    border-color: var(--global--color-primary);
}

.custom-checkbox label:hover::before {
    border-color: var(--global--color-primary);
    transform: scale(1.05);
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.custom-checkbox input:focus + label::before {
    outline: 2px solid var(--global--color-primary);
    outline-offset: 2px;
}

/* Modal Overlay Fix */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

.modal-dialog {
    z-index: 1060;
}

/* Print Styles */
@media print {
    .esonuc-section {
        background: white;
    }
    
    .btn,
    .modal,
    .consent-section {
        display: none !important;
    }
    
    .esonuc-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
.modal-open .modal{
    background-color: #0000007b;
}