/* CSS Custom Properties for theming */
:root {
    --primary-color: #013663;
    --secondary-color: #02539c;
    --primary-gradient: linear-gradient(135deg, #013663 0%, #02539c 100%);
    --secondary-gradient: linear-gradient(135deg, #02539c 0%, #013663 100%);
}

/* Theme-specific overrides */
.theme-local-recoveries {
    --primary-color: #00d1d0;
    --secondary-color: #4cd233;
    --primary-gradient: linear-gradient(135deg, #00d1d0 0%, #4cd233 100%);
    --secondary-gradient: linear-gradient(135deg, #4cd233 0%, #00d1d0 100%);
}

.theme-payadvantage {
    --primary-color: #d51e33;
    --secondary-color: #151515;
    --primary-gradient: linear-gradient(135deg, #9e1626 0%, #ff5252 100%);
    --secondary-gradient: linear-gradient(135deg, #ff5252 0%, #9e1626 100%);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: var(--primary-gradient);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header-content {
    width: 100%;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 30px;
}

.mf-logo {
    max-width: 450px;
    height: auto;
    margin-top: 40px;
}

.header-text {
    text-align: center;
}

.header-text p {
    margin: 20px auto;
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.95;
    max-width: 800px;
}

.commitment-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.encouragement-text {
    font-weight: 500;
    margin-bottom: 20px;
}

.account-relationship {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-instruction-text {
    font-weight: 500;
    margin-bottom: 15px;
}

.confidentiality-text {
    font-size: 0.95rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 0;
}

/* Main content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    backdrop-filter: blur(10px);
}

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

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

.form-header p {
    color: #718096;
    font-size: 1rem;
}

/* Form styles */
.complaint-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

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

.progress-step.completed .step-number {
    background: var(--secondary-gradient);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #718096;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--secondary-color);
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.step-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f4ff;
}

.step-header h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-header p {
    color: #718096;
    font-size: 1rem;
    margin: 0;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.prev-btn, .next-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.prev-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.prev-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.next-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(1, 54, 99, 0.2);
}

.next-btn:hover {
    background: var(--secondary-gradient);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 54, 99, 0.3);
}

.next-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form group styles */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--secondary-color);
    width: 16px;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

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

/* Contact Preferences */
.contact-preferences {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4a5568;
    position: relative;
    padding-left: 25px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: var(--secondary-color);
    background-color: #f0f4ff;
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--primary-gradient);
    border-color: var(--secondary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

/* Helper Text */
.helper-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
}

/* Declaration Section */
.declaration-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.declaration-section h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.declaration-checkbox {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

/* After Submission Info */
.after-submission-info {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 20px;
}

.after-submission-info h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.after-submission-info p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.submit-btn,
.reset-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.reset-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.reset-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header.success {
    color: #38a169;
}

.modal-header.error {
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px 20px 0 0;
    margin: -1px;
}

.modal-header.error i {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
}

.modal-header.error h3 {
    color: white;
}

.modal-body {
    padding: 20px 30px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(1, 54, 99, 0.3);
}

/* Loading state */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Background Decoration */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        max-width: 100%;
    }
    
    .mf-logo {
        max-width: 300px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .header-text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .commitment-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .form-container {
        padding: 30px 25px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .progress-indicator {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .progress-indicator::before {
        display: none;
    }
    
    .progress-step {
        flex-direction: row;
        gap: 10px;
        background: none;
        padding: 0;
    }
    
    .step-number {
        margin-bottom: 0;
    }
    
    .step-label {
        font-size: 0.9rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .prev-btn, .next-btn {
        width: 100%;
        justify-content: center;
    }
    
    .step-header h3 {
        font-size: 1.3rem;
    }
    
    .step-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        max-width: 100%;
    }
    
    .mf-logo {
        max-width: 300px;
    }
    
    .header-text p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .commitment-text {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .submit-btn,
    .reset-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .progress-step {
        gap: 8px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .step-header h3 {
        font-size: 1.2rem;
    }
    
    .step-header p {
        font-size: 0.85rem;
    }
    
    .prev-btn, .next-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Error states */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.declaration-checkbox.error {
    color: #e53e3e;
}

/* Field validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    background-color: #fff5f5;
    box-shadow: 0 0 0 1px #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: "⚠";
    font-size: 1rem;
}

/* Focus states for error fields */
.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Checkbox error state */
.checkbox-label.error {
    color: #dc3545;
}

.checkbox-label.error .checkmark {
    border-color: #dc3545;
}

.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header.success {
    color: #38a169;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
} 