/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
    overflow-x: hidden;
}


/* Header Container */
.headerContainer {
    margin: 0 auto;
    display: flex;
    width: 90%;
    justify-content: space-between;
    padding: 2rem;
}

/* Left Header */
.leftHeader {
    display: flex;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.logo img {
    width: 5rem;
    height: 5rem;
}
.logo h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: #2c5530;
}

/* Right Header */
.rightHeader {
    display: flex;
    gap: 4rem;
}
.headerAction {
    gap: 1rem;
    display: flex;
    align-items: center;
}
.headerAction p {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #2c5530;
}


/* Contact Page */
.contact-page-container {
    background: white;
    padding: 5rem 0 5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.contact-form-header {
    margin-bottom: 40px;
}

.contact-form-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-form-header p {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 6px;
}

.faq-link {
    color: #4a90e2;
    text-decoration: underline;
    font-size: 1.2rem;
}

.faq-link:hover {
    color: #357abd;
}

.contact-form-body {
    text-align: left;
}

.contact-form-group {
    margin-bottom: 2rem;
    position: relative;
}

.contact-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1.2rem;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.3s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #2c5530; /* Changed to match home.css green theme */
}

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

.contact-error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.captcha-section {
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.captcha-text {
    font-size: 1rem;
    color: #333;
}

.captcha-icon {
    width: 40px;
    height: 40px;
    background: #2c5530; /* Changed to match home.css theme */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-left: 10px;
}

.contact-submit-btn {
    background: #2c5530; /* Changed to match home.css theme */
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    min-height: 54px;
}

.contact-submit-btn:hover {
    background: #1a3d1f; /* Darker green on hover */
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-success-message {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

.contact-footer {
    margin-top: 40px;
    text-align: right;
    font-size: 1.1rem;
    color: #333;
}

/* Loading animation */
.contact-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: contactSpin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes contactSpin {
    to { transform: rotate(360deg); }
}

/* Responsive Design for Contact Form */
@media (max-width: 768px) {
    .contact-page-container {
        padding: 160px 15px 40px; /* Adjusted for mobile header */
    }

    .contact-form-header h1 {
        font-size: 2rem;
    }

    .contact-form-header p {
        font-size: 1rem;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        padding: 12px;
    }

    .contact-submit-btn {
        padding: 15px 30px;
    }

    .contact-footer {
        text-align: center;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .contact-page-container {
        padding: 140px 10px 30px; /* Further adjusted for smaller mobile */
    }

    .contact-form-header h1 {
        font-size: 1.8rem;
    }

    .captcha-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Additional Contact Page Specific Styles */
.contact-form-wrapper {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin: 20px;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        margin: 10px;
        padding: 30px 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    }
}
