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

        .form-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin: 20px 0;
            overflow: hidden;
        }

        /* Header Styles */
        .form-header {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .form-title {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 15px;
            line-height: 1.2;
        }

        .form-subtitle {
            font-size: 1.1rem;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .contact-info {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
        }

        .contact-info p {
            margin-bottom: 8px;
            font-weight: 600;
        }

        .contact-info ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .contact-info li {
            margin-bottom: 5px;
        }

        .contact-info a {
            color: #3498db;
            text-decoration: none;
            font-weight: 500;
        }

        .contact-info a:hover {
            color: #2980b9;
            text-decoration: underline;
        }

        /* Progress Bar Styles */
        .progress-container {
            padding: 30px;
            background: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
        }

        .progress {
            height: 8px;
            border-radius: 4px;
            background-color: #e9ecef;
            margin-bottom: 20px;
        }

        .progress-bar {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 4px;
            transition: width 0.4s ease-in-out;
        }

        .step-indicators {
            display: flex;
            justify-content: space-between;
            position: relative;
        }

        .step {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e9ecef;
            color: #6c757d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }

        .step.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .step.completed {
            background: #28a745;
            color: white;
        }

        .step.completed::before {
            content: '✓';
            font-weight: bold;
        }

        /* Form Section Styles */
        .step-content {
            display: none;
            padding: 30px;
            min-height: 400px;
        }

        .step-content.active {
            display: block;
            animation: fadeIn 0.5s ease-in-out;
        }

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

        .section-header {
            margin-bottom: 30px;
            text-align: center;
        }

        .section-header h2 {
            color: #2c3e50;
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .section-header i {
            margin-right: 10px;
            color: #667eea;
        }

        /* Form Group Styles */
        .form-group {
            margin-bottom: 25px;
        }

        .form-label {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 0.95rem;
            display: block;
        }

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

        .form-control, .form-select {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 12px 15px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            width: 100%;
        }

        .form-control:focus, .form-select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
            outline: none;
        }

        .form-control.is-valid {
            border-color: #28a745;
        }

        .form-control.is-invalid {
            border-color: #dc3545;
        }

        .form-text {
            font-size: 0.85rem;
            color: #6c757d;
            margin-top: 5px;
            font-style: italic;
        }

        /* Card Styles */
        .card {
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            margin-bottom: 25px;
        }

        .card-body {
            padding: 25px;
        }

        .agreement-card {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-left: 4px solid #667eea;
        }

        .pdpa-card {
            background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
            border-left: 4px solid #ffc107;
        }

        .agreement-list {
            padding-left: 20px;
            margin-bottom: 20px;
        }

        .agreement-list li {
            margin-bottom: 12px;
            line-height: 1.6;
        }

        .footnote {
            font-size: 0.85rem;
            color: #6c757d;
            font-style: italic;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #dee2e6;
        }

        /* Checkbox and Radio Styles */
        .form-check {
            margin-bottom: 12px;
            padding-left: 0;
            display: flex;
            align-items: flex-start;
        }

        .form-check-input {
            margin-top: 0.3rem;
            margin-right: 10px;
            flex-shrink: 0;
        }

        .form-check .form-check-input {margin-left: 0;}

        .form-check-input:focus {
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }

        .form-check-input:checked {
            background-color: #667eea;
            border-color: #667eea;
        }

        .form-check-label {
            font-weight: 500;
            color: #495057;
            cursor: pointer;
            line-height: 1.5;
            flex: 1;
        }

        /* Special Sections */
        .cop-pass-section {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 25px;
            margin-top: 30px;
            border-left: 4px solid #28a745;
        }

        .cop-pass-section h4 {
            color: #2c3e50;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .representative-section {
            background: #f0f4f8;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            border-left: 4px solid #3498db;
        }

        .representative-section h4 {
            color: #2c3e50;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .conditional-section {
            display: none;
            margin-top: 20px;
            padding: 20px;
            background: rgba(102, 126, 234, 0.05);
            border-radius: 8px;
            border-left: 3px solid #667eea;
            transition: all 0.3s ease;
        }

        .conditional-section.show {
            display: block;
            animation: slideDown 0.4s ease-in-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                max-height: 0;
                transform: translateY(-10px);
                padding-top: 0;
                padding-bottom: 0;
            }
            to {
                opacity: 1;
                max-height: 2000px;
                transform: translateY(0);
                padding-top: 20px;
                padding-bottom: 20px;
            }
        }

        /* Navigation Styles */
        .form-navigation {
            padding: 30px;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .btn {
            padding: 12px 25px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

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

        .btn-primary:hover:not(:disabled) {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

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

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

        .btn-success {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            font-size: 1.1rem;
            padding: 15px 35px;
        }

        .btn-success:hover:not(:disabled) {
            background: linear-gradient(135deg, #218838 0%, #1ca085 100%);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
        }

        /* File Input Styles */
        .form-control[type="file"] {
            padding: 8px 12px;
            height: auto;
        }

        .form-control[type="file"]::-webkit-file-upload-button {
            background: #667eea;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            margin-right: 10px;
            cursor: pointer;
        }

        .form-control[type="file"]::-webkit-file-upload-button:hover {
            background: #5a6fd8;
        }

        /* Input Group Styles */
        .input-group .form-control:first-child {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        .input-group .form-control:last-child {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            border-left: none;
        }

        .input-group .form-control:not(:first-child):not(:last-child) {
            border-radius: 0;
            border-left: none;
            border-right: none;
        }

        /* Validation Styles */
        .invalid-feedback {
            display: block;
            color: #dc3545;
            font-size: 0.875rem;
            margin-top: 5px;
            font-weight: 500;
        }

        .valid-feedback {
            display: block;
            color: #28a745;
            font-size: 0.875rem;
            margin-top: 5px;
        }

        /* Alert Styles */
        .alert {
            border-radius: 8px;
            border: none;
            padding: 15px 20px;
            margin-bottom: 20px;
        }

        .alert-danger {
            background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
            color: #721c24;
            border-left: 4px solid #dc3545;
        }

        .alert-success {
            background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
            color: #155724;
            border-left: 4px solid #28a745;
        }

        .btn-close {
            background: none;
            border: none;
            font-size: 1.2rem;
            font-weight: bold;
            opacity: 0.7;
            cursor: pointer;
            float: right;
            margin-left: 15px;
        }

        .btn-close:hover {
            opacity: 1;
        }

        /* Loading States */
        .btn .fa-spinner {
            margin-right: 8px;
        }

        /* Additional Spokesperson Section */
        .additional-spokesperson {
            background: #e8f4f8;
            border: 2px solid #3498db;
            border-radius: 12px;
            padding: 25px;
            margin-top: 30px;
        }

        .additional-spokesperson h5 {
            color: #2c3e50;
            margin-bottom: 20px;
        }

        /* Auto-save indicator */
        .auto-save-indicator {
            position: fixed;
            top: 20px;
            left: 20px;
            background: #28a745;
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.8rem;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .auto-save-indicator.show {
            opacity: 1;
        }

        .auto-save-indicator.saving {
            background: #ffc107;
            color: #000;
        }

        .auto-save-indicator.error {
            background: #dc3545;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .form-title {
                font-size: 1.8rem;
            }
            
            .form-subtitle {
                font-size: 1rem;
            }
            
            .step-content {
                padding: 20px;
            }
            
            .form-navigation {
                padding: 20px;
                flex-direction: column;
                gap: 15px;
            }
            
            .form-navigation .btn {
                width: 100%;
            }
            
            .step-indicators {
                margin: 0 -10px;
            }
            
            .step {
                margin: 0 5px;
                width: 35px;
                height: 35px;
                font-size: 12px;
            }
            
            .representative-section,
            .cop-pass-section {
                padding: 20px;
            }
            
            .card-body {
                padding: 20px;
            }
        }

        @media (max-width: 576px) {
            body {
                padding: 10px 0;
            }
            
            .form-container {
                margin: 10px 0;
                border-radius: 8px;
            }
            
            .form-header {
                padding: 20px;
            }
            
            .progress-container {
                padding: 20px;
            }
            
            .step-content {
                padding: 15px;
            }
            
            .representative-section,
            .cop-pass-section {
                padding: 15px;
            }
            
            .conditional-section {
                padding: 15px;
            }
            
            .form-title {
                font-size: 1.5rem;
            }
            
            .section-header h2 {
                font-size: 1.5rem;
            }
            
            .step {
                width: 30px;
                height: 30px;
                font-size: 11px;
            }
            
            .input-group {
                flex-direction: column;
            }
            
            .input-group .form-control {
                border-radius: 8px !important;
                border: 2px solid #e9ecef !important;
                margin-bottom: 10px;
            }
            
            .input-group .form-control:last-child {
                margin-bottom: 0;
            }
        }