/* ==========================================================================
   Contact Page Styles
   ONLY using: golden-green (#8B9A46), dark-red (#8B2C2C), pale-yellow (#FFF8DC)
   ========================================================================== */

/* Contact Hero */
.hero-section {
    padding: 6rem 2rem 3rem;
    background: linear-gradient(135deg,
        rgba(139, 154, 70, 0.08) 0%,
        rgba(139, 44, 44, 0.05) 100%);
    text-align: center;
}

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

.hero-section .hero-title {
    color: var(--dark-red);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section .hero-subtitle {
    color: var(--dark-red);
    opacity: 0.85;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    background: var(--pale-yellow);
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form Container */
.contact-form-container {
    background: rgba(255, 248, 220, 0.6);
    border: 2px solid rgba(139, 154, 70, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form-container h2 {
    color: var(--dark-red);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 154, 70, 0.2);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    color: var(--dark-red);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Contact Info Sidebar */
.contact-info {
    position: sticky;
    top: 100px;
}

.contact-info h2 {
    color: var(--dark-red);
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 248, 220, 0.6);
    border: 2px solid rgba(139, 154, 70, 0.2);
    border-radius: 15px;
    transition: all 0.3s;
}

.contact-method:hover {
    border-color: var(--golden-green);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(139, 44, 44, 0.1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--golden-green), rgba(139, 154, 70, 0.8));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pale-yellow);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    color: var(--dark-red);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--dark-red);
    opacity: 0.85;
    margin: 0;
    line-height: 1.6;
}

.contact-details a {
    color: var(--golden-green);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

.contact-note {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Social Links in Contact Info */
.contact-info .social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(139, 154, 70, 0.2);
}

.contact-info .social-links h3 {
    color: var(--dark-red);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background: rgba(139, 154, 70, 0.1);
    border: 2px solid rgba(139, 154, 70, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--golden-green);
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--golden-green);
    border-color: var(--golden-green);
    color: var(--pale-yellow);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* Map Section */
.map-section {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom,
        rgba(139, 154, 70, 0.05),
        transparent);
}

.map-section h2 {
    text-align: center;
    color: var(--dark-red);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-placeholder {
    background: rgba(255, 248, 220, 0.6);
    border: 2px solid rgba(139, 154, 70, 0.2);
    border-radius: 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-red);
    opacity: 0.7;
}

.map-placeholder p {
    margin: 0.5rem 0;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    background: var(--pale-yellow);
    border: 2px solid var(--golden-green);
    color: var(--dark-red);
    box-shadow: 0 10px 30px rgba(139, 44, 44, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    border-color: var(--golden-green);
    background: rgba(139, 154, 70, 0.1);
}

.toast.error {
    border-color: var(--dark-red);
    background: rgba(139, 44, 44, 0.1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 220, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 154, 70, 0.2);
    border-top-color: var(--golden-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Button Loader */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 248, 220, 0.3);
    border-top-color: var(--pale-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        position: static;
    }

    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 4rem 1rem 2rem;
    }

    .hero-section .hero-title {
        font-size: 1.75rem;
    }

    .hero-section .hero-subtitle {
        font-size: 1rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-form-container h2 {
        font-size: 1.5rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-method {
        padding: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .map-placeholder {
        height: 250px;
    }

    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3.5rem 0.75rem 1.5rem;
    }

    .hero-section .hero-title {
        font-size: 1.5rem;
    }

    .hero-section .hero-subtitle {
        font-size: 0.9rem;
    }

    .contact-section {
        padding: 1.5rem 0.75rem;
    }

    .contact-grid {
        gap: 2rem;
    }

    .contact-form-container {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .contact-form-container h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .contact-form .form-group {
        margin-bottom: 1rem;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }

    .contact-method {
        padding: 0.75rem;
        border-radius: 12px;
        gap: 0.75rem;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-details h3 {
        font-size: 1rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .map-section {
        padding: 2rem 1rem;
    }

    .map-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .map-placeholder {
        height: 200px;
        border-radius: 15px;
    }

    .thank-you-banner {
        padding: 1rem;
        gap: 0.75rem;
    }

    .thank-you-check {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 1rem;
    }

    .thank-you-text strong {
        font-size: 1rem;
    }

    .thank-you-text p {
        font-size: 0.85rem;
    }

    .legal-modal {
        width: 97%;
        border-radius: 12px;
    }

    .legal-modal-header {
        padding: 0.75rem 1rem;
    }

    .legal-modal-header h2 {
        font-size: 1.1rem;
    }

    .legal-modal-body {
        padding: 0.75rem 1rem;
    }

    .legal-modal-body h3 {
        font-size: 1rem;
    }

    .legal-modal-body p,
    .legal-modal-body ul {
        font-size: 0.85rem;
    }

    .legal-modal-footer {
        padding: 0.5rem 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-container,
.contact-method {
    animation: fadeInUp 0.6s ease-out;
}

.contact-method:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-method:nth-child(3) {
    animation-delay: 0.2s;
}

.contact-method:nth-child(4) {
    animation-delay: 0.3s;
}

/* Thank You Banner */
.thank-you-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(139, 154, 70, 0.15);
    border: 2px solid var(--golden-green);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeSlideIn 0.4s ease-out;
}

.thank-you-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--golden-green);
    color: var(--pale-yellow);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
}

.thank-you-text strong {
    display: block;
    color: var(--golden-green);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.thank-you-text p {
    color: var(--dark-red);
    opacity: 0.85;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

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

/* Legal Modal (Privacy Policy & Terms of Service) */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 44, 44, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.legal-modal {
    background: var(--pale-yellow);
    border: 2px solid var(--golden-green);
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(139, 44, 44, 0.25);
    animation: modalSlideUp 0.3s ease-out;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(139, 154, 70, 0.2);
    flex-shrink: 0;
}

.legal-modal-header h2 {
    color: var(--dark-red);
    font-size: 1.5rem;
    margin: 0;
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--dark-red);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.legal-modal-close:hover {
    opacity: 1;
}

.legal-modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.legal-modal-body .legal-updated {
    color: var(--golden-green);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.legal-modal-body h3 {
    color: var(--dark-red);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-modal-body h3:first-of-type {
    margin-top: 0;
}

.legal-modal-body p {
    color: var(--dark-red);
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-modal-body ul {
    color: var(--dark-red);
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.legal-modal-body li {
    margin-bottom: 0.25rem;
}

.legal-modal-footer {
    padding: 1rem 2rem;
    border-top: 2px solid rgba(139, 154, 70, 0.2);
    text-align: center;
    flex-shrink: 0;
}

.legal-modal-footer .legal-modal-close-btn {
    min-width: 120px;
}

/* Modal link styling inside checkbox label */
.modal-link {
    color: var(--golden-green);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-link:hover {
    color: var(--dark-red);
}

/* Privacy checkbox error state */
.checkbox-group .error-message {
    color: var(--dark-red);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.checkbox-group .error-message.visible {
    display: block;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 640px) {
    .legal-modal {
        width: 95%;
        max-height: 85vh;
        border-radius: 15px;
    }

    .legal-modal-header {
        padding: 1rem 1.25rem;
    }

    .legal-modal-header h2 {
        font-size: 1.25rem;
    }

    .legal-modal-body {
        padding: 1rem 1.25rem;
    }

    .legal-modal-footer {
        padding: 0.75rem 1.25rem;
    }
}
