/* Contact Page Improved Styles */

/* Design Tokens */
:root {
    --brand-green: #8DC63F;
    --brand-green-dark: #6bcf7f;
    --brand-peach: #ff8c42;
    --soft-bg: #fbfbfb;
    --text-primary: #103741;
    --text-secondary: #5a6c7d;
    --border-color: #e5e5e5;
    --error-color: #dc3545;
    --success-color: #28a745;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Contact Section */
.contact-section-improved {
    padding: 60px 0 100px;
    background: var(--soft-bg);
    min-height: 80vh;
}

/* Hero Section */
.contact-hero {
    margin-bottom: 50px;
    padding: 0 20px;
}

.contact-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.contact-hero-subtext {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Form Column */
.contact-form-column {
    min-width: 0;
}

.contact-form-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%238DC63F" stroke-width="0.5" opacity="0.1"/><circle cx="50" cy="50" r="25" fill="none" stroke="%238DC63F" stroke-width="0.5" opacity="0.1"/></svg>') no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

/* Form Styles */
.contact-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 15px;
}

.form-label .required {
    color: var(--error-color);
    font-weight: 500;
}

.form-label .optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.1);
    background: #ffffff;
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
}

.form-control:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6c7d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

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

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
}

.error-message:empty {
    display: none;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: var(--brand-green);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
}

.btn-submit:hover:not(:disabled) {
    background: var(--brand-green-dark);
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.btn-submit:active:not(:disabled) {
    transform: scale(1.01);
}

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

.btn-submit:focus {
    outline: 3px solid rgba(141, 198, 63, 0.3);
    outline-offset: 2px;
}

.btn-spinner {
    display: inline-block;
}

/* Form Messages */
.form-reassurance {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}

.form-message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message.form-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Info Column */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e5e5e5;
    border-top: 3px solid #e5e5e5;
}

.info-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.info-item .info-icon {
    align-self: flex-start;
    margin-top: 0;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d4a574;
    font-size: 20px;
    box-shadow: none;
    transition: transform 0.3s ease;
    border: none;
    position: relative;
    line-height: 1;
    margin-top: 2px;
}

.info-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.info-item:hover .info-icon {
    transform: scale(1.05);
}

.info-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
}

.info-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #8DC63F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.info-text {
    margin: 0;
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.6;
    width: 100%;
}

.info-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.info-link:hover {
    color: var(--brand-green);
    text-decoration: underline;
}

.info-link:focus {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Copy Address Button */
.btn-copy-address {
    margin-top: 12px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 13px;
    color: #9e9e9e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-copy-address i {
    color: #d4a574;
    font-size: 14px;
}

.btn-copy-address:hover {
    background: #f8f9fa;
    color: #5a6c7d;
    border-color: #d0d0d0;
}

.btn-copy-address:focus {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

/* CTAs */
.info-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.btn-cta {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.btn-cta-primary {
    background: var(--brand-green);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-cta-primary:hover {
    background: var(--brand-green-dark);
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.btn-cta-secondary {
    background: var(--brand-peach);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-cta-secondary:hover {
    background: #ff7a2e;
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.btn-cta:focus {
    outline: 3px solid rgba(141, 198, 63, 0.3);
    outline-offset: 2px;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--soft-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-directions:hover {
    background: var(--brand-green);
    color: #ffffff;
    border-color: var(--brand-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-directions:focus {
    outline: 3px solid rgba(141, 198, 63, 0.3);
    outline-offset: 2px;
}

/* Map Card */
.contact-map-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    display: block;
}

.map-fallback-link {
    display: block;
    margin-top: 12px;
    text-align: center;
    color: var(--brand-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.map-fallback-link:hover {
    text-decoration: underline;
}

/* Mobile CTAs */
.mobile-ctas {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    flex-direction: column;
    gap: 12px;
}

.mobile-cta {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    min-width: 56px;
    min-height: 56px;
}

.mobile-cta:hover {
    transform: scale(1.1);
    background: var(--brand-green-dark);
}

.mobile-cta:focus {
    outline: 3px solid rgba(141, 198, 63, 0.5);
    outline-offset: 2px;
}

.mobile-cta:nth-child(2) {
    background: #25D366;
}

.mobile-cta:nth-child(2):hover {
    background: #20BA5A;
}

.mobile-cta:nth-child(3) {
    background: var(--brand-peach);
}

.mobile-cta:nth-child(3):hover {
    background: #ff7a2e;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--soft-bg);
    color: var(--text-primary);
}

.modal-close:focus {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

.modal-body {
    padding: 28px;
}

.tour-form .form-group {
    margin-bottom: 20px;
}

.tour-form .form-label {
    margin-bottom: 8px;
}

.tour-form .form-control {
    width: 100%;
}

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

    .contact-hero-title {
        font-size: 2.25rem;
    }

    .contact-hero-subtext {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .contact-section-improved {
        padding: 40px 0 120px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 15px;
    }

    .contact-form-card,
    .contact-info-card,
    .contact-map-card {
        padding: 24px;
    }

    .contact-hero {
        margin-bottom: 40px;
        padding: 0 15px;
    }

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

    .contact-hero-subtext {
        font-size: 1rem;
    }

    .info-ctas {
        grid-template-columns: 1fr;
    }

    .mobile-ctas {
        display: flex;
    }

    .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .contact-form-card,
    .contact-info-card,
    .contact-map-card {
        padding: 20px;
    }

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

    .form-group {
        margin-bottom: 20px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        margin: 0 auto;
    }

    .mobile-cta {
        width: 52px;
        height: 52px;
        font-size: 22px;
        min-width: 52px;
        min-height: 52px;
    }

    .mobile-ctas {
        bottom: 15px;
        right: 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid var(--brand-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }

    .btn-submit,
    .btn-cta {
        border: 2px solid currentColor;
    }
}

