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

:root {
    --primary-color: #1F4788;
    --secondary-color: #2E5C8A;
    --accent-color: #4472C4;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #212529;
    --text-light: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 20px;
    margin-top: -20px;
}

.main-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.main-tagline {
    color: var(--text-light);
    font-size: 24pt;
    font-family: 'Arial Rounded MT Bold', 'Arial Rounded MT', Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 0;
}

/* Survey Options */
.survey-options {
    text-align: center;
}

.survey-options h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    margin-top: 10px;
    font-size: 1.8rem;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.survey-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.survey-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.derek-logo {
    /* Derek logo specific styling */
}

.commercial-logo {
    /* Commercial logo specific styling */
}

/* Example Report Section */
.example-report-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 12px;
}

.example-report-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.example-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.example-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 71, 136, 0.3);
}

.survey-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.survey-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(31, 71, 136, 0.2);
}

.survey-btn .icon {
    font-size: 3rem;
}

.survey-btn .text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.survey-btn .subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.domestic-btn:hover .text,
.domestic-btn:hover .subtitle {
    color: white;
}

.commercial-btn:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.commercial-btn:hover .text,
.commercial-btn:hover .subtitle {
    color: white;
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Back Button */
.back-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--secondary-color);
}

/* Form Sections */
.form-section {
    margin-top: 30px;
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.form-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    margin-top: 25px;
    font-size: 1.3rem;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.input-field,
.select-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Error Messages */
.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

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

.input-field.error,
.select-field.error {
    border-color: var(--danger-color);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 71, 136, 0.3);
}

.btn-primary:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.button-group-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* Info & Alert Boxes */
.info-box,
.alert-box,
.success-box {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.info-box h2,
.alert-box h2,
.success-box h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box p,
.alert-box p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.requirement-option {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-color);
}

.requirement-option h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.requirement-option ul {
    list-style-position: inside;
    margin: 10px 0;
    color: var(--text-dark);
}

.requirement-option li {
    margin: 8px 0;
}

.note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 10px;
}

.alert-icon,
.success-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}

.success-box {
    text-align: center;
    background: #d4edda;
    border: 2px solid var(--success-color);
}

.success-icon {
    background: var(--success-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
}

.ref-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 20px 0;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 30px 0;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #e3f2fd;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-subtitle {
    color: var(--text-light);
    margin: 10px 0;
}

.file-types {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 15px;
}

/* File List */
.file-list {
    margin: 20px 0;
}

.file-item {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    font-size: 1.5rem;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-light);
}

.remove-file {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-file:hover {
    background: #c82333;
}

.privacy-note {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Commercial Type Options */
.commercial-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.type-option-btn,
.auth-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.type-option-btn:hover,
.auth-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(31, 71, 136, 0.2);
}

.type-icon,
.auth-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.type-option-btn h3,
.auth-btn h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.type-option-btn p,
.auth-btn p {
    color: var(--text-light);
    margin: 0;
}

.auth-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

/* Multi-Site Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-header h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

#dashboard-account-ref {
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-actions {
    margin-bottom: 30px;
}

.sites-list {
    display: grid;
    gap: 20px;
}

.site-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--accent-color);
}

.site-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.site-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.site-card-actions {
    display: flex;
    gap: 10px;
}

.site-card-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-site-btn {
    background: var(--accent-color);
    color: white;
}

.delete-site-btn {
    background: var(--danger-color);
    color: white;
}

.site-info p {
    margin: 5px 0;
    color: var(--text-dark);
}

.site-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-complete {
    background: #d4edda;
    color: #155724;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-field {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group {
    margin: 15px 0 15px 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.checkbox-group .checkbox-label {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

#separate-submission-options {
    margin: 20px 0;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
}

#separate-submission-options p {
    margin: 0 0 10px 0;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .button-group {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .survey-logo {
        max-width: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group-inline {
        grid-template-columns: 1fr;
    }
    
    .survey-btn .icon {
        font-size: 2.5rem;
    }
    
    .survey-btn .text {
        font-size: 1.1rem;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .survey-options h2 {
        font-size: 1.3rem;
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
}
