/* Contact Page Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure contact page flows properly with footer */
body:has(.contact-page) {
    display: flex;
    flex-direction: column;
}

.contact-page {
    flex: 1 0 auto;
    padding-top: 100px; /* Account for fixed header */
    padding-bottom: 0;
    background: #F8F9FA;
    position: relative;
}

.get-in-touch {
    background: white;
    padding: 60px 0 120px 0;
    margin-bottom: 0;
    position: relative;
    z-index: auto;
}

.get-in-touch .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.get-in-touch h1 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.get-in-touch .subtitle {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 60px;
    color: #666;
}

.contact-intro a {
    color: #228B22;
    text-decoration: none;
    font-weight: 600;
}

.contact-intro a:hover {
    text-decoration: underline;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    margin-top: 0;
}

.contact-form {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: none;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    background: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #228B22;
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
    transform: translateY(-1px);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    transform: scale(1.2);
    margin-top: 4px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

.field-notice {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 8px;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    background: #228B22;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn:hover {
    background: #1a6b1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.contact-form .btn {
    width: 100%;
    margin-top: 20px;
}

.support-message {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
    margin-top: 30px;
}

.support-message p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
}

.support-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.support-message .btn {
    display: inline-block;
    width: auto;
    padding: 18px 30px;
    flex: 0 0 auto;
}

.btn-secondary {
    background: transparent;
    color: #228B22;
    border: 2px solid #228B22;
}

.btn-secondary:hover {
    background: #228B22;
    color: white;
    border-color: #228B22;
}

.thank-you-message {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
    margin-top: 30px;
}

.thank-you-message h2 {
    color: #228B22;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.thank-you-message p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
    background: transparent;
    padding: 0;
    height: fit-content;
}

/* Contact Info Section */
.contact-info-section {
    background: transparent;
    padding: 0;
    height: fit-content;
}

.map-container {
    margin-bottom: 30px;
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.location-group {
    margin-bottom: 40px;
}

.location-group h3,
.contact-methods h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.location h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.location p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.location a {
    color: #228B22;
    text-decoration: none;
    font-weight: 500;
}

.location a:hover {
    text-decoration: underline;
}

.contact-methods p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-page-link {
    display: inline-block;
    padding: 12px 20px;
    background: #228B22;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-page-link:hover {
    background: #1a6b1a;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-page {
        padding-top: 80px;
    }
    
    .get-in-touch {
        padding: 60px 0 100px 0;
    }
    
    .get-in-touch .container {
        padding: 0 15px;
    }
    
    .get-in-touch h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .get-in-touch .subtitle {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .contact-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
    }
    
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 24px;
    }
    

    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .btn {
        padding: 15px 40px;
        font-size: 16px;
    }
    
    .support-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-links {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .get-in-touch {
        padding: 40px 0 80px 0;
    }
    
    .get-in-touch h1 {
        font-size: 28px;
    }
    
    .get-in-touch .subtitle {
        font-size: 18px;
    }
    
    .contact-content {
        padding: 25px 15px;
    }
    
    .support-message,
    .thank-you-message {
        padding: 30px 20px;
    }
    
    .thank-you-message h2 {
        font-size: 24px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
}

/* hCaptcha styling */
#hcaptcha-container {
    margin: 20px 0;
}

/* Error message styling */
.error-message {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-error {
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

/* Submit button states */
.submit-button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Footer positioning for contact page */
footer {
    margin-top: auto;
    position: relative;
}