/* Contact Page Specific Styles */

/* Smooth scrolling for hash navigation */
html {
    scroll-behavior: smooth;
}

.page-header {
    background: linear-gradient(135deg, var(--gw-jade-900), var(--gw-jade-700));
    color: var(--gw-white);
    text-align: center;
    padding: 200px 0 80px; /* Increased top padding to account for fixed header (120px + 80px) */
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gw-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.8rem;
    opacity: 0.9;
    color: var(--gw-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-section {
    padding: 6rem 0;
    background-color: var(--gw-parchment);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info {
    padding: 2rem 0;
}

.visit-us-section {
    padding: 2rem 0;
}

.right-side-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.opening-hours-card {
    background: var(--gw-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    scroll-margin-top: 120px; /* Account for fixed header */
    transition: box-shadow 0.3s ease;
}

.opening-hours-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    color: var(--gw-umber);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.contact-info h2,
.visit-us-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    color: var(--gw-umber);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.contact-info > p,
.visit-us-section > p {
    color: var(--gw-charcoal);
    line-height: 1.8;
    margin-bottom: 4rem;
    font-size: 1.6rem;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 4rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gw-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gw-jade-700), var(--gw-jade-900));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    flex-shrink: 0;
    color: var(--gw-white);
    font-size: 2rem;
}

.method-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--gw-umber);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.method-content p {
    color: var(--gw-charcoal);
    line-height: 1.6;
    margin: 0;
    font-size: 1.4rem;
}

/* Address link styling */
.method-content p a {
    color: var(--gw-charcoal);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid var(--gw-charcoal);
}

.method-content p a:hover {
    color: var(--gw-gold);
    border-bottom: 1px solid var(--gw-gold);
}

.social-section h3 {
    font-family: 'Cinzel', serif;
    color: var(--gw-umber);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    background: var(--gw-white);
    border: 2px solid var(--gw-gold);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gw-gold);
    transition: transform .2s ease, box-shadow .2s ease;
    font-weight: 600;
    font-size: 1.4rem;
    white-space: nowrap;
    min-width: 140px;
    height: 44px;
    justify-content: center;
}

.social-link:hover {
    background: var(--gw-gold);
    color: var(--gw-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,.3);
}

.social-link i {
    margin-right: 0.8rem;
    font-size: 1.6rem;
}

/* Contact Form */
.contact-form-container {
    background: var(--gw-white);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
}

.contact-form h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    color: var(--gw-umber);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gw-charcoal);
    font-size: 1.4rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E1E5E9;
    border-radius: var(--border-radius);
    font-size: 1.4rem;
    transition: var(--transition);
    background-color: var(--gw-white);
    font-family: 'Noto Sans', sans-serif;
    color: var(--gw-charcoal);
}

.form-control:focus {
    outline: none;
    border-color: var(--gw-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: 'Noto Sans', sans-serif;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    padding-left: 30px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--gw-white);
    border: 2px solid #E1E5E9;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-label:hover .checkmark {
    border-color: var(--gw-gold);
}

.checkbox-label input:checked ~ .checkmark {
    background-color: var(--gw-gold);
    border-color: var(--gw-gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid var(--gw-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.4rem;
    margin-top: 1rem;
    position: relative;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.map-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), #F4D03F);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.map-placeholder h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
}

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

.faq-item {
    border-bottom: 1px solid #E1E5E9;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition);
}

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

.faq-question i {
    transition: var(--transition);
    color: var(--primary-color);
}

.faq-question.active i {
    transform: rotate(180deg);
}

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

.faq-answer.active {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Opening Hours Styles */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
    background: rgba(212, 175, 55, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--gw-white);
    border-radius: 8px;
    border-left: 4px solid var(--gw-gold);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hours-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
    transition: width 0.3s ease;
    z-index: 1;
}

.hours-item:hover::before {
    width: 100%;
}

.hours-item:hover {
    background: var(--gw-white);
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-left-color: var(--gw-umber);
}

.hours-item .day {
    font-weight: 600;
    color: var(--gw-umber);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-width: 90px;
    position: relative;
    z-index: 2;
}

.hours-item .time {
    color: var(--gw-charcoal);
    font-size: 1.3rem;
    line-height: 1.4;
    text-align: right;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.hours-item .time.closed {
    color: var(--gw-crimson);
    font-weight: 600;
    font-style: italic;
    position: relative;
}

.hours-item .time.closed::after {
    content: '🚫';
    margin-left: 0.5rem;
    font-style: normal;
}

.hours-item .time br {
    margin: 0.2rem 0;
}

/* Special styling for today's hours */
.hours-item.today {
    background: linear-gradient(135deg, var(--gw-gold), #E6C547);
    border-left-color: var(--gw-umber);
    border-left-width: 6px;
    color: var(--gw-white);
    position: relative;
}

.hours-item.today .day,
.hours-item.today .time {
    color: var(--gw-white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hours-item.today .time.closed {
    color: rgba(255,255,255,0.8);
}

/* Form Validation Styles */
.form-control.error {
    border-color: #dc3545;
}

.form-control.success {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

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

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    display: none;
}

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

/* Loading States */
.form-control:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
}

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

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

    .right-side-content {
        gap: 2rem;
    }

    .opening-hours-card {
        padding: 2rem;
    }

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

    .visit-info {
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .page-header {
        padding: 156px 0 60px; /* Increased top padding for mobile (100px + 56px) */
    }
    
    .page-header h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
        color: var(--gw-white);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .page-header p {
        font-size: 1.5rem;
        color: var(--gw-white);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

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

    .contact-methods {
        margin-bottom: 3rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .method-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .method-content {
        width: 100%;
        text-align: center;
    }

    .method-content h3 {
        margin-bottom: 1rem;
    }

    .method-content p {
        max-width: 280px;
        margin: 0 auto;
        line-height: 1.6;
    }

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

    .social-links {
        justify-content: center;
        gap: 1rem;
    }

    .social-link {
        padding: 0.8rem 1.5rem;
        font-size: 1.3rem;
        min-width: 120px;
        justify-content: center;
    }

    .social-link i {
        margin-right: 0.6rem;
        font-size: 1.4rem;
    }

    .map-placeholder h3 {
        font-size: 1.5rem;
    }

    .map-placeholder p {
        font-size: 1rem;
    }

    /* Mobile opening hours adjustments */
    .hours-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1.2rem;
    }

    .hours-item .day {
        min-width: auto;
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .hours-item .time {
        text-align: center;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-info h2,
    .visit-us-section h2,
    .opening-hours-card h2,
    .contact-form h2,
    .map-section h2,
    .faq-section h2 {
        font-size: 1.8rem;
    }

    .contact-method {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .method-content h3 {
        font-size: 1.6rem;
    }

    .method-content p {
        font-size: 1.3rem;
        max-width: 250px;
    }

    .opening-hours-card {
        padding: 1.5rem;
    }

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

    .faq-question {
        font-size: 1rem;
        padding: 1rem 0;
    }

    .map-placeholder {
        height: 300px;
    }

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

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer.active {
    animation: slideDown 0.3s ease-out;
}

/* Desktop Media Queries */
@media (min-width: 768px) {
    .page-header {
        padding: 200px 0 80px; /* Increased top padding for desktop (120px + 80px) */
    }

    .page-header h1 {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        color: var(--gw-white);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .page-header p {
        font-size: 1.8rem;
        color: var(--gw-white);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
}

/* Print Styles */
@media print {
    .contact-form-container,
    .map-section,
    .faq-section {
        display: none;
    }

    .contact-method {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* TikTok Embed Styling - Reserve space to prevent layout shifts */
.tiktok-embed-container {
    min-height: 400px; /* Reserve space for TikTok widget */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 8px;
    margin: 20px 0;
    transition: min-height 0.3s ease;
}

.tiktok-embed {
    width: 100%;
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Mobile responsive for TikTok embed */
@media (max-width: 768px) {
    .tiktok-embed-container {
        min-height: 350px;
    }
}
