/* DSA Form Specific Styles */
.dsa-form-section {
    padding: calc(var(--header-height) + 4px) 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.dsa-form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.form-header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.form-header p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Sections */
.form-section {
    border: none;
    margin: 0;
    padding: 30px 40px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section legend {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section legend i {
    font-size: 18px;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h1 {
        font-size: 24px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .dsa-form-card {
        margin: 0 15px;
        border-radius: 12px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .checkbox-item {
        padding: 15px;
        font-size: 14px;
    }
    
    .consent-item {
        padding: 18px;
        font-size: 14px;
    }
    
    .form-submit {
        padding: 30px 20px;
    }
    
    .form-submit .btn {
        width: 100%;
        min-width: auto;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .dsa-form-section {
        padding: 20px 0;
    }
    
    .dsa-form-card {
        margin: 0 10px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .form-header {
        padding: 25px 15px;
    }
    
    .form-header h1 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .form-section legend {
        font-size: 18px;
        padding: 0 10px;
    }
    
    .checkbox-item {
        padding: 12px;
        font-size: 13px;
    }
    
    .consent-item {
        padding: 15px;
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* File Upload Styling */
.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #e9ecef;
    background: #f8f9fa;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 14px;
}

.checkbox-item:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

/* Hide default checkbox */
.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom Checkbox */
.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Consent Checkboxes */
.consent-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.consent-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
}

/* Hide default consent checkboxes */
.consent-item input[type="checkbox"] {
    display: none;
}

.consent-item .checkmark {
    margin-top: 2px;
    flex-shrink: 0;
}

.consent-item input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Submit */
.form-submit {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
}

.form-submit .btn {
    min-width: 250px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Loading State */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading .btn {
    background: #6c757d;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
    display: none;
}

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

/* Error Styling */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

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

.form-group.error .error-message {
    display: block;
}

/* Header Adjustments for DSA Page */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .nav-link {
    color: var(--primary-color);
    font-weight: 500;
}

.header .nav-link:hover {
    color: var(--secondary-color);
}/* Touc
h-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Larger touch targets */
    .checkbox-item,
    .consent-item {
        min-height: 48px; /* Minimum touch target size */
    }
    
    /* Better file upload styling on mobile */
    .form-group input[type="file"] {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    /* Improved legend styling */
    .form-section legend {
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    /* Better spacing for checkmarks */
    .checkmark {
        width: 20px;
        height: 20px;
    }
    
    /* Improved textarea sizing */
    .form-group textarea {
        min-height: 100px;
    }
}

/* Landscape phone optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .form-header {
        padding: 20px;
    }
    
    .form-header h1 {
        font-size: 22px;
    }
    
    .form-section {
        padding: 20px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .dsa-form-card {
        margin: 0 5px;
    }
    
    .form-header h1 {
        font-size: 18px;
    }
    
    .form-section legend {
        font-size: 16px;
    }
    
    .checkbox-item,
    .consent-item {
        padding: 10px;
        font-size: 12px;
    }
}/*
 Mobile Navigation Styles for DSA Form */
.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-toggle:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
}

.mobile-toggle i {
    font-size: 20px;
    color: var(--primary-color);
}

/* Mobile Navigation for DSA */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding-top: 30px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0 20px;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav-link {
        display: block;
        padding: 20px 0;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-primary);
        text-align: left;
        width: 100%;
    }
    
    .nav-link:hover {
        color: var(--primary-color);
        background: rgba(var(--primary-rgb), 0.05);
        padding-left: 10px;
    }
}
