
/* CSS Variables for Ample Brand Colors */
:root {
    --ample-primary-green: #3b8b6e;
    --ample-light-green: #89d99c;
    --ample-dark-blue: #164772;
    --ample-gradient: linear-gradient(135deg, var(--ample-primary-green) 0%, var(--ample-light-green) 100%);
    --ample-dark-gradient: linear-gradient(135deg, var(--ample-dark-blue) 0%, var(--ample-primary-green) 100%);
    --shadow-light: 0 4px 6px rgba(59, 139, 110, 0.1);
    --shadow-medium: 0 8px 25px rgba(59, 139, 110, 0.15);
    --shadow-heavy: 0 15px 35px rgba(59, 139, 110, 0.2);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

.page-background {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 50%, #f0f9f4 100%);
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.quote-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    position: relative;
}

    .quote-form-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: var(--ample-gradient);
    }

/* Logo Styling */
.logo-container {
    text-align: center;
    padding: 3rem 2rem 1rem;
    background: linear-gradient(135deg, #fafffe 0%, #f5faf8 100%);
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(59, 139, 110, 0.15));
}

/* Form Header */
.form-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #fafffe 0%, #f5faf8 100%);
    border-bottom: 1px solid #e8f5f0;
}

    .form-header h1 {
        font-size: 2.25rem;
        font-weight: 700;
        color: var(--ample-dark-blue);
        margin: 0 0 0.5rem;
        background: var(--ample-dark-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .form-header p {
        font-size: 1.125rem;
        color: var(--ample-primary-green);
        margin: 0;
        font-weight: 500;
    }

/* Form Styles */
.quote-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--ample-dark-blue);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.025em;
}

.label-icon {
    font-size: 1.2rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0f2f1;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    background: #ffffff;
    color: var(--ample-dark-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

    .form-input:focus, .form-select:focus {
        outline: none;
        border-color: var(--ample-primary-green);
        box-shadow: 0 0 0 4px rgba(59, 139, 110, 0.1);
        background: #fafffe;
    }

    .form-input:hover, .form-select:hover {
        border-color: var(--ample-light-green);
    }

/* Custom Select Styling */
.select-wrapper {
    position: relative;
}

.form-select {
    appearance: none;
    padding-right: 3rem;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--ample-primary-green);
    pointer-events: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: var(--ample-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    box-shadow: var(--shadow-medium);
}

    .submit-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: var(--shadow-heavy);
        background: linear-gradient(135deg, var(--ample-primary-green) 0%, var(--ample-dark-blue) 100%);
    }

    .submit-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.btn-icon {
    font-size: 1.25rem;
}

/* Loading Spinner */
.loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    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);
    }
}

/* Validation Styles */
.validation-summary {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.validation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.validation-summary h4 {
    color: #dc2626;
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #b91c1c;
}

.validation-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .validation-message::before {
        content: '??';
        font-size: 0.75rem;
    }

.form-input.input-validation-error,
.form-select.input-validation-error {
    border-color: #dc2626;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Success Message */
.success-message {
    padding: 3rem 2.5rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.success-message h3 {
    color: var(--ample-dark-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.success-message p {
    color: var(--ample-primary-green);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.reset-btn {
    background: transparent;
    color: var(--ample-primary-green);
    border: 2px solid var(--ample-primary-green);
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .reset-btn:hover {
        background: var(--ample-primary-green);
        color: white;
        transform: translateY(-1px);
    }

/* Form Footer */
.form-footer {
    padding: 2rem 2.5rem;
    background: #f8fffe;
    border-top: 1px solid #e8f5f0;
    text-align: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #e8f5f0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ample-primary-green);
}

.security-icon {
    font-size: 1rem;
}

.form-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.form-footer a {
    color: var(--ample-primary-green);
    text-decoration: none;
    font-weight: 500;
}

    .form-footer a:hover {
        text-decoration: underline;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-background {
        padding: 1rem 0.5rem;
    }

    .quote-form-container {
        border-radius: 16px;
        margin: 0;
    }

    .logo-container {
        padding: 2rem 1.5rem 1rem;
    }

    .logo {
        max-width: 160px;
    }

    .form-header {
        padding: 1.5rem 1.5rem 1rem;
    }

        .form-header h1 {
            font-size: 1.875rem;
        }

        .form-header p {
            font-size: 1rem;
        }

    .quote-form {
        padding: 2rem 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-input, .form-select {
        padding: 1rem;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 1.125rem 1.5rem;
        font-size: 1rem;
    }

    .success-message {
        padding: 2.5rem 1.5rem;
    }

    .success-icon {
        font-size: 3rem;
    }

    .success-message h3 {
        font-size: 1.5rem;
    }

    .form-footer {
        padding: 1.5rem;
    }

    .security-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .page-background {
        padding: 0.5rem 0.25rem;
    }

    .logo-container {
        padding: 1.5rem 1rem 0.75rem;
    }

    .logo {
        max-width: 140px;
    }

    .form-header h1 {
        font-size: 1.625rem;
    }

    .quote-form {
        padding: 1.5rem 1rem;
    }

    .submit-btn {
        padding: 1rem 1.25rem;
    }
}

/* 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 Accessibility */
.submit-btn:focus-visible,
.reset-btn:focus-visible {
    outline: 2px solid var(--ample-primary-green);
    outline-offset: 2px;
}

.form-input:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--ample-primary-green);
    outline-offset: 2px;
}


.label-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ample-primary-green);
    margin-left: 0.5rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fafffe;
    border: 2px solid #e8f5f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--ample-dark-blue);
}

    .checkbox-item:hover {
        border-color: var(--ample-light-green);
        background: #f0fdf4;
        transform: translateY(-1px);
        box-shadow: var(--shadow-light);
    }

    .checkbox-item:has(.checkbox-input:checked) {
        border-color: var(--ample-primary-green);
        background: linear-gradient(135deg, #f0fdf4 0%, #fafffe 100%);
        box-shadow: var(--shadow-medium);
    }

.checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--ample-primary-green);
    border-color: var(--ample-primary-green);
}

    .checkbox-input:checked + .checkbox-custom::after {
        content: '';
        position: absolute;
        left: 0.25rem;
        top: 0.125rem;
        width: 0.375rem;
        height: 0.625rem;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.checkbox-label {
    font-size: 1rem;
    line-height: 1.4;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .checkbox-item {
        padding: 0.875rem;
    }
}
/* Privacy Policy & Terms Agreement Styles */
.terms-agreement {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.terms-text {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.terms-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .terms-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

/* Footer Links Styles */
.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: #007bff;
        text-decoration: underline;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .terms-agreement {
        margin: 1rem 0;
        padding: 0.75rem;
    }

    .terms-text {
        font-size: 0.85rem;
    }

    .form-footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}