/* Contact Page Specific Styles */

/* Contact Hero */
.contact-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.contact-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    z-index: 0;
}

/* Dark mode support for contact hero */
@media (prefers-color-scheme: dark) {
    .contact-hero .hero-background {
        filter: brightness(0.85) contrast(1.1);
    }

    .contact-hero .hero-overlay {
        background: rgba(26, 26, 26, 0.4) !important;
    }
}

[data-theme="dark"] .contact-hero .hero-background,
body.dark-mode .contact-hero .hero-background {
    filter: brightness(0.85) contrast(1.1);
}

[data-theme="dark"] .contact-hero .hero-overlay,
body.dark-mode .contact-hero .hero-overlay {
    background: rgba(26, 26, 26, 0.4) !important;
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.6);
    z-index: 2;
}

.contact-hero .hero-content {
    z-index: 10;
    padding-top: 80px;
}

.contact-hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Contact Form */
.contact-form-container h2 {
    font-size: 2.5rem;
    color: var(--deep-black);
    margin-bottom: 15px;
}

.contact-form-container p {
    color: var(--warm-grey);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--light-grey);
    padding: 40px;
    border-radius: 15px;
}

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

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

.form-group label {
    display: block;
    color: var(--deep-black);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--warm-grey);
}

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

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #666666;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-gold);
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
}

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

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12.75L11.25 15 15 9.75'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.privacy-link {
    color: var(--primary-gold);
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: var(--primary-gold);
    color: var(--deep-black);
    border: none;
    padding: 18px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #B8941F;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Contact Info */
.contact-info {
    background: var(--deep-black);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    height: fit-content;
}

.contact-info h3 {
    color: var(--primary-gold);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-details h4 {
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.social-contact {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 30px;
}

.social-contact h4 {
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.social-contact .social-links {
    display: flex;
    gap: 15px;
}

.social-contact .social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-contact .social-links a:hover {
    color: var(--primary-gold);
    transform: translateY(-3px);
}

/* Map Section */
.map-section {
    background: var(--light-grey);
    padding: 80px 0;
}

.map-section .section-header h2 {
    color: #1A1A1A !important;
}

.map-section .section-header p {
    color: #1A1A1A !important;
}

/* Dark mode overrides for map section */
@media (prefers-color-scheme: dark) {
    .map-section .section-header h2,
    .map-section .section-header p {
        color: #1A1A1A !important;
    }
}

[data-theme="dark"] .map-section .section-header h2,
body.dark-mode .map-section .section-header h2,
[data-theme="dark"] .map-section .section-header p,
body.dark-mode .map-section .section-header p {
    color: #1A1A1A !important;
}

.map-container {
    background: white;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
}

#contact-map {
    margin-bottom: 25px;
}

.map-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.map-features span {
    background: var(--primary-gold);
    color: var(--deep-black);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: white;
}

.faq-section .section-header h2 {
    color: var(--deep-black) !important;
}

.faq-section .section-header p {
    color: var(--deep-black) !important;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-gold);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--deep-black);
    margin: 0;
    transition: color 0.3s ease;
}

.faq-question:hover h3 {
    color: var(--primary-gold);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 25px;
}

.faq-answer p {
    color: var(--warm-grey);
    line-height: 1.6;
    font-size: 1rem;
}

/* Active Navigation */
.nav-link.active {
    color: var(--primary-gold);
}

.nav-link.active::after {
    width: 100%;
}

/* Form Validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

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

.form-group.error .error-message {
    display: block;
}

.success-message {
    background: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Loading State */
.loading .submit-btn {
    background: #ccc;
    cursor: not-allowed;
}

.loading .submit-btn::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--deep-black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form {
        padding: 30px 20px;
    }

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

    .contact-info {
        padding: 30px 20px;
    }

    #contact-map {
        height: 350px !important;
    }

    .map-features {
        gap: 15px;
        flex-direction: column;
    }

    .map-features span {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 20px;
    }
}

@media (max-width: 600px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .contact-info {
        padding: 25px 15px;
    }

    .contact-item {
        gap: 15px;
    }

    #contact-map {
        height: 300px !important;
    }

    .map-features {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Form Animation */
.form-group {
    opacity: 0;
    animation: slideInForm 0.6s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

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