/* ==========================================================================
   Contact Page Styles - v2.0
   ========================================================================== */

:root {
    --contact-dark: #070a1d;
    --contact-text: #303030;
    --contact-text-white: #ffffff;
    --contact-input-border: #8a8a8a;
    --contact-placeholder: #b5b5b5;
    --contact-link: #005bd3;
    --contact-font-family: 'Be Vietnam Pro', sans-serif;
}

main {
    font-family: var(--contact-font-family);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.contact-hero {
    background-color: var(--contact-dark);
    background-image: url("../images/contact/hero-bg.png");
    background-size: cover;
    background-position: center;
    border-radius: 0px 0px 16px 16px;
}

.contact-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    padding: 200px 16px 40px;
}

.contact-hero__content {
    text-align: center;
    color: var(--contact-text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.contact-hero__title {
    font-weight: 900;
    font-size: 46px;
    line-height: 64px;
    color: var(--contact-text-white);
    margin: 0;
}

.contact-hero__subtitle {
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: var(--contact-text-white);
    margin: 0;
}

/* ==========================================================================
   Form Section
   ========================================================================== */

.contact-form {
    padding: 100px 16px;
}

.contact-form__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left Column - Form */

.contact-form__left {
    width: 537px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form__title {
    font-weight: 800;
    font-size: 32px;
    line-height: normal;
    color: var(--contact-text);
    margin: 0;
}

.contact-form__subtitle {
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: var(--contact-text);
    margin: 0;
}

/* CF7 Form Styling */

.contact-form__left .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form__left .wpcf7-form p {
    margin: 0;
}

.contact-form__left .wpcf7-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: var(--contact-text);
}

/* Name row - two fields side by side */

.t1-contact--info > p {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
}

/* All text/email/url inputs */

.t1-contact-name--field,
.t1-contact-email--field,
.t1-contact-store-url--field {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--contact-input-border);
    border-radius: 12px;
    background: #fff;
    font-family: var(--contact-font-family);
    font-size: 16px;
    color: var(--contact-text);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.t1-contact-name--field::placeholder,
.t1-contact-store-url--field::placeholder {
    color: var(--contact-placeholder);
}

.t1-contact-name--field:focus,
.t1-contact-email--field:focus,
.t1-contact-store-url--field:focus {
    border-color: var(--contact-dark);
}

/* Select dropdown */

.t1-contact-subject--field {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--contact-input-border);
    border-radius: 12px;
    background: #fff;
    font-family: var(--contact-font-family);
    font-size: 16px;
    color: var(--contact-text);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%23303030' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.t1-contact-subject--field:focus {
    border-color: var(--contact-dark);
}

/* Textarea */

.t1-contact-message--field {
    width: 100%;
    height: 127px;
    padding: 14px 16px;
    border: 1px solid var(--contact-input-border);
    border-radius: 12px;
    background: #fff;
    font-family: var(--contact-font-family);
    font-size: 16px;
    color: var(--contact-text);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    resize: vertical;
}

.t1-contact-message--field::placeholder {
    color: var(--contact-placeholder);
}

.t1-contact-message--field:focus {
    border-color: var(--contact-dark);
}

/* Submit button */

.t1-contact--submit {
    width: 100%;
    height: 54px;
    background-color: var(--contact-dark);
    color: var(--contact-text-white);
    border: none;
    border-radius: 16px;
    font-family: var(--contact-font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 16px;
}

.t1-contact--submit:hover {
    opacity: 0.9;
}

input[type="submit"].wpcf7-submit.is-loading {
    pointer-events: none;
    opacity: 0.7;
    color: transparent;
}

.cf7-btn-spinner {
    position: absolute;
    bottom: 16px;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--contact-text-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: cf7-spin 0.6s linear infinite;
    pointer-events: none;
}

@keyframes cf7-spin {
    to { transform: rotate(360deg); }
}

.grecaptcha-badge {
    visibility: hidden;
}

/* Privacy note under submit */

.contact-form__privacy {
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: var(--contact-text);
    margin: 0;
}

.contact-form__privacy a {
    color: var(--contact-text);
    text-decoration: underline;
}

/* CF7 validation & response */

.contact-form__left .wpcf7-form .wpcf7-response-output {
    margin: 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.contact-form__left .wpcf7-form .wpcf7-spinner {
    display: none;
}

.contact-form__left .wpcf7-form .wpcf7-response-output {
    font-size: 14px;
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    transition: opacity 0.4s ease;
}

.contact-form__left .wpcf7-form .wpcf7-response-output.hide {
    opacity: 0;
}

.contact-form__left .wpcf7-form.sent .wpcf7-response-output {
    border-color: #56a630;
    color: #56a630;
    background-color: #f0fdf4;
}

/* Right Column - Contact Info */

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info__card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-info__icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    object-fit: cover;
}

.contact-info__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info__title {
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
    color: var(--contact-text);
    margin: 0;
}

.contact-info__detail {
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: var(--contact-text);
    margin: 0;
}

.contact-info__detail--link {
    color: var(--contact-link);
    text-decoration: none;
}

.contact-info__detail--link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive - Tablet (992px)
   ========================================================================== */

@media (max-width: 992px) {
    .contact-hero__inner {
        height: 300px;
        padding-top: 180px;
    }

    .contact-hero__title {
        font-size: 36px;
        line-height: 48px;
    }

    .contact-form__inner {
        flex-direction: column;
    }

    .contact-form__left {
        width: 100%;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }

    .contact-info__card {
        flex: 1 1 calc(50% - 15px);
        min-width: 250px;
    }
}

/* ==========================================================================
   Responsive - Mobile (768px)
   ========================================================================== */

@media (max-width: 768px) {
    .contact-hero__inner {
        height: 260px;
        padding-top: 160px;
    }

    .contact-hero__title {
        font-size: 30px;
        line-height: 40px;
    }

    .contact-hero__subtitle {
        font-size: 16px;
    }

    .contact-form {
        padding: 60px 16px;
    }

    .contact-form__title {
        font-size: 26px;
    }

    .t1-contact--info > p {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info__card {
        flex: 1 1 100%;
        min-width: unset;
    }
}

/* ==========================================================================
   Responsive - Small Mobile (490px)
   ========================================================================== */

@media (max-width: 490px) {
    .contact-hero__inner {
        height: 220px;
        padding-top: 140px;
    }

    .contact-hero__title {
        font-size: 24px;
        line-height: 34px;
    }

    .contact-hero__subtitle {
        font-size: 14px;
    }

    .contact-form {
        padding: 40px 16px;
    }

    .contact-form__title {
        font-size: 22px;
    }

    .t1-contact--submit {
        height: 48px;
        font-size: 16px;
    }
}
