/* Hero Section */
.contact-hero {
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 0;
}

.contact-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero .hero-title {
    color: var(--secondary-light);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .contact-hero .hero-title {
        font-size: 2.5rem;
    }
}
/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    color: var(--secondary-light);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(203, 202, 170, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--secondary-light);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link:hover svg {
    fill: var(--primary-dark);
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--secondary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* Custom Quote Page Styles */

body {
    background: var(--white);
    min-height: 100vh;
}

.quote-section {
    padding: 0;
    min-height: calc(100vh - 500px); /* Subtract approximate header + footer height */
}

.quote-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* White Background Section */
.white-section {
    background: var(--white);
    padding: 2rem 0 2rem;
    margin-bottom: 0;
}

/* Form Background Section */
.form-background {
    margin-top: -4rem; /* Pull up the form section to reduce space */
}

/* Help Box */
.help-box {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    margin: 0 2rem 4rem 2rem;
    text-align: center;
}

.help-box h3 {
    color: var(--secondary-light);
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.help-box p {
    color: var(--secondary-light);
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-light);
    transform: translateY(-2px);
}

/* Form Background Section */
.form-background {
    background: linear-gradient(90deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    padding: 4rem 0 4rem;
    margin-top: -4rem;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
}

/* Form Sections */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: var(--secondary-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.section-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.section-description {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--white);
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-light);
    backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder,
.form-select {
    color: var(--secondary-light);
    opacity: 0.7;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-light);
    box-shadow: 0 0 0 1px var(--secondary-light);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Service Checkboxes */
.service-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.service-checkbox {
    display: block;
    cursor: pointer;
}

.service-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--white);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.checkbox-icon {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.checkbox-icon::after {
    content: '✓';
    color: var(--secondary-light);
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.service-checkbox input[type="checkbox"]:checked + .checkbox-label {
    background: var(--primary-dark);
    border-color: var(--accent);
}

.service-checkbox input[type="checkbox"]:checked + .checkbox-label .checkbox-icon {
    background: var(--primary-dark);
    border-color: var(--accent);
}

.service-checkbox input[type="checkbox"]:checked + .checkbox-label .checkbox-icon::after {
    opacity: 1;
    transform: scale(1);
}

.service-checkbox:hover .checkbox-label {
    border-color: var(--primary-light);
}

/* Goals Checkboxes */
.goals-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.goal-checkbox {
    display: block;
    cursor: pointer;
}

.goal-checkbox input[type="checkbox"] {
    display: none;
}

.goal-checkbox .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--white);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.goal-checkbox .checkbox-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.goal-checkbox input[type="checkbox"]:checked + .checkbox-label {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.goal-checkbox .checkbox-icon {
    width: 24px;
    height: 24px;
    border: 1px solid var(--secondary-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.goal-checkbox .checkbox-icon::after {
    content: '✓';
    color: var(--secondary-light);
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.goal-checkbox input[type="checkbox"]:checked + .checkbox-label .checkbox-icon {
    background: var(--primary-dark);
    border-color: var(--accent);
}

.goal-checkbox input[type="checkbox"]:checked + .checkbox-label .checkbox-icon::after {
    opacity: 1;
    transform: scale(1);
}

/* File Upload */
.file-upload-label {
    display: block;
    padding: 2rem;
    background: var(--primary-dark);
    border: 2px dashed var(--secondary-light);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: var(--primary-dark);
    border-color: var(--accent);
}

.file-upload-label input[type="file"] {
    display: none;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.file-upload-text svg {
    width: 40px;
    height: 40px;
    color: var(--white);
    opacity: 0.9;
}

.file-types {
    font-size: 0.875rem;
    color: var(--white);
    opacity: 0.8;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--secondary-light);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-name {
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.file-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

/* Submit Section */
.submit-section {
    background: linear-gradient(135deg, rgba(59, 83, 74, 0.05), rgba(203, 202, 170, 0.1));
}

.privacy-notice {
    text-align: center;
    margin-bottom: 2rem;
}

.privacy-notice p {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.privacy-notice a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.privacy-notice a:hover {
    border-bottom-color: var(--white);
    opacity: 1;
}

.privacy-notice a:hover {
    border-bottom-color: var(--primary-dark);
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark), #00442B);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 83, 74, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

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

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.success-modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.success-icon {
    color: #27ae60;
    margin-bottom: 1.5rem;
}

.success-modal-content h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.success-modal-content p {
    color: var(--gray-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-close-btn {
    padding: 0.875rem 2rem;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-close-btn:hover {
    background: #00442B;
}

/* Error States */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
.form-submit.loading {
    position: relative;
    color: transparent;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .quote-form-container {
        padding: 0 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .service-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .goals-checkboxes {
        grid-template-columns: 1fr;
    }

    .help-box {
        margin: 0 1rem 3rem 1rem;
        padding: 2rem 1rem;
    }

    .help-box h3 {
        font-size: 1.75rem;
    }

    .help-box p {
        font-size: 1rem;
    }

    .help-box {
        margin: 0 1rem 3rem 1rem;
        padding: 2rem 1rem;
    }

    .help-box h3 {
        font-size: 1.75rem;
    }

    .help-box p {
        font-size: 1rem;
    }
}

/* RTL Support */
html[dir="rtl"] .checkbox-label {
    flex-direction: row-reverse;
}

html[dir="rtl"] .form-submit {
    flex-direction: row-reverse;
}

html[dir="rtl"] .form-submit svg {
    transform: rotate(180deg);
}