/**
 * Contact Page Shortcode Styles
 *
 * @package Flavor_Starter
 * @version 1.0.0
 */

/* ==========================================================================
   Contact Page Container
   ========================================================================== */

.ta-contact-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 30px 0;
}

/* ==========================================================================
   Info Card Section
   ========================================================================== */

.ta-contact-page__info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ta-contact-page__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

/* Image Side */
.ta-contact-page__info-image {
    position: relative;
    overflow: hidden;
}

.ta-contact-page__info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ta-contact-page__info-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--secondary-color-rgb, 0, 0, 0), 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

/* Content Side */
.ta-contact-page__info-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ta-contact-page__info-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 24px;
    line-height: 1.3;
}

.ta-contact-page__info-heading-highlight {
    color: var(--secondary);
}

.ta-contact-page__info-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ta-contact-page__company-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
}

.ta-contact-page__info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ta-contact-page__info-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ta-contact-page__info-label {
    color: #666;
    font-weight: 500;
    min-width: 100px;
}

.ta-contact-page__info-value {
    color: #333;
    flex: 1;
}

.ta-contact-page__info-note {
    margin: -8px 0 0;
    padding-left: 108px;
    font-size: 0.8125rem;
    color: #666;
    font-style: italic;
}

.ta-contact-page__info-link {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ta-contact-page__info-link:hover {
    color: var(--secondary-dark, var(--secondary));
    text-decoration: underline;
}

/* ==========================================================================
   Bottom Grid (Form & Map)
   ========================================================================== */

.ta-contact-page__bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Section Heading */
.ta-contact-page__section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 24px;
    line-height: 1.3;
}

.ta-contact-page__section-heading-highlight {
    color: var(--secondary);
}

/* Form Section */
.ta-contact-page__form-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
}

.ta-contact-page__form-wrapper {
    /* Formidable Forms styling overrides */
}

/* Formidable Forms Override Styles */
.ta-contact-page__form-wrapper .frm_forms {
    margin: 0;
}

.ta-contact-page__form-wrapper .frm_form_fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ta-contact-page__form-wrapper .frm_form_field {
    margin: 0 !important;
}

.ta-contact-page__form-wrapper .frm_form_field label.frm_primary_label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.ta-contact-page__form-wrapper input[type="text"],
.ta-contact-page__form-wrapper input[type="email"],
.ta-contact-page__form-wrapper input[type="tel"],
.ta-contact-page__form-wrapper input[type="number"],
.ta-contact-page__form-wrapper textarea,
.ta-contact-page__form-wrapper select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ta-contact-page__form-wrapper input:focus,
.ta-contact-page__form-wrapper textarea:focus,
.ta-contact-page__form-wrapper select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb, 0, 0, 0), 0.15);
}

.ta-contact-page__form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.ta-contact-page__form-wrapper .frm_submit button,
.ta-contact-page__form-wrapper .frm_submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ta-contact-page__form-wrapper .frm_submit button:hover,
.ta-contact-page__form-wrapper .frm_submit input[type="submit"]:hover {
    background: var(--secondary-dark, var(--secondary));
    transform: translateY(-1px);
}

.ta-contact-page__no-form {
    padding: 24px;
    text-align: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Map Section */
.ta-contact-page__map-section {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.ta-contact-page__map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.ta-contact-page__map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    display: block;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet */
@media (max-width: 991px) {
    .ta-contact-page {
        gap: 30px;
    }

    .ta-contact-page__info-grid {
        grid-template-columns: 1fr;
    }

    .ta-contact-page__info-image {
        height: 250px;
    }

    .ta-contact-page__info-content {
        padding: 30px;
    }

    .ta-contact-page__bottom-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ta-contact-page__map-section {
        min-height: 350px;
    }

    .ta-contact-page__map-wrapper,
    .ta-contact-page__map-wrapper iframe {
        min-height: 350px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .ta-contact-page {
        gap: 24px;
    }

    .ta-contact-page__info-image {
        height: 200px;
    }

    .ta-contact-page__info-content {
        padding: 24px 20px;
    }

    .ta-contact-page__info-heading {
        font-size: 1.375rem;
        margin-bottom: 20px;
    }

    .ta-contact-page__company-name {
        font-size: 1rem;
    }

    .ta-contact-page__info-item {
        flex-direction: column;
        gap: 4px;
        font-size: 0.875rem;
    }

    .ta-contact-page__info-label {
        min-width: auto;
    }

    .ta-contact-page__info-note {
        padding-left: 0;
        margin-top: 4px;
    }

    .ta-contact-page__section-heading {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .ta-contact-page__form-section {
        padding: 24px 20px;
    }

    .ta-contact-page__form-wrapper input[type="text"],
    .ta-contact-page__form-wrapper input[type="email"],
    .ta-contact-page__form-wrapper input[type="tel"],
    .ta-contact-page__form-wrapper textarea {
        padding: 10px 14px;
        font-size: 0.875rem;
    }

    .ta-contact-page__form-wrapper .frm_submit button,
    .ta-contact-page__form-wrapper .frm_submit input[type="submit"] {
        width: 100%;
        padding: 12px 24px;
    }

    .ta-contact-page__map-section {
        min-height: 280px;
    }

    .ta-contact-page__map-wrapper,
    .ta-contact-page__map-wrapper iframe {
        min-height: 280px;
    }
}
