/**
 * piimarket — Contact Us template styles.
 * Loaded only on pages using the "Contact Us" template.
 */

/*--------------------------------------------------------------
  First section — heading + intro
--------------------------------------------------------------*/
.contact-first-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    padding: 3rem 0 3.5rem;
}

.contact-title {
    flex: 0 0 auto;
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-text);
}

.contact-intro {
    flex: 0 1 46%;
    max-width: 46%;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text);
}

/*--------------------------------------------------------------
  Second section — full-bleed light band
--------------------------------------------------------------*/
.contact-second {
    background: #fafafa;
}

.contact-second-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    padding: 4rem 0;
}

.contact-left {
    flex: 1 1 48%;
    max-width: 48%;
}

.contact-right {
    flex: 1 1 45%;
    max-width: 45%;
}

/* Left: photo + blue info box (flush) */
.contact-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.contact-info {
    padding: 2rem 2.25rem;
    background: #6499ff;
}

.contact-info-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.contact-info-row:last-child {
    margin-bottom: 0;
}

.contact-info-label {
    flex: 0 0 130px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    color: #14142b;
}

.contact-info-value {
    flex: 1;
    line-height: 1.5;
    color: #14142b;
}

/*--------------------------------------------------------------
  Right: request form
--------------------------------------------------------------*/
.contact-right-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-text);
}

.contact-right-desc {
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.6;
}

.contact-right-desc p {
    margin: 0;
}

/* ----------------------------------------------------------
   Gravity Forms (orbital theme) overrides
---------------------------------------------------------- */
.contact-form .gform_heading,
.contact-form .gform_required_legend {
    display: none;
}

/* Labels (incl. the Name fieldset <legend>) */
.contact-form .gform_wrapper .gfield_label,
.contact-form .gform_wrapper .gform-field-label {
    display: block;
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #45505c;
}

/* Hide GF sub-labels (e.g. the "First" under the Name field) */
.contact-form .gform-field-label--type-sub {
    display: none;
}

/* Name complex field — single first-name input, full width */
.contact-form .ginput_complex.ginput_container_name {
    display: block;
    margin: 0;
}

.contact-form .ginput_container_name .name_first {
    display: block;
    width: 100%;
    padding: 0;
}

/* Inputs */
.contact-form .gform_wrapper input[type="text"],
.contact-form .gform_wrapper input[type="email"],
.contact-form .gform_wrapper input[type="tel"],
.contact-form .gform_wrapper input[type="number"],
.contact-form .gform_wrapper input[type="url"],
.contact-form .gform_wrapper textarea,
.contact-form .gform_wrapper select {
    width: 100%;
    padding: 1.5rem 1rem !important;
    border: 1px solid #cfd3d8 !important;
    border-radius: 6px;
    background: #ffffff !important;
    font: inherit;
    line-height: 1.4;
    color: var(--color-text);
    box-shadow: none;
}

.contact-form .gform_wrapper input::placeholder,
.contact-form .gform_wrapper textarea::placeholder {
    color: #89919b;
    opacity: 1;
}

.contact-form .gform_wrapper input:focus,
.contact-form .gform_wrapper textarea:focus,
.contact-form .gform_wrapper select:focus {
    outline: 0;
    border-color: var(--color-accent);
    box-shadow: none;
}

/* Field spacing — zero the orbital grid row-gap, control via margin */
.contact-form .gform_wrapper .gform_fields {
    grid-row-gap: 0;
    row-gap: 0;
}

.contact-form .gform_wrapper .gfield {
    margin-bottom: 1.25rem;
}

/* Submit button (override orbital's blue primary button) */
.contact-form .gform_wrapper .gform_footer {
    margin: 0.5rem 0 0;
    padding: 0;
}

.contact-form .gform_wrapper .gform_footer .gform_button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 205px !important;
    margin: 0;
    padding: 0.95rem 1.85rem !important;
    background-color: #111 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.contact-form .gform_wrapper .gform_footer .gform_button:hover,
.contact-form .gform_wrapper .gform_footer .gform_button:focus {
    background-color: #000 !important;
}

/*--------------------------------------------------------------
  Responsive
--------------------------------------------------------------*/
@media (max-width: 782px) {
    .contact-first-head {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0 2.5rem;
    }

    .contact-intro {
        flex-basis: auto;
        max-width: 100%;
    }

    .contact-second-inner {
        flex-direction: column;
        gap: 2.5rem;
        padding: 3rem 0;
    }

    .contact-left,
    .contact-right {
        flex-basis: auto;
        max-width: 100%;
    }

    .contact-info-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .contact-info-label {
        flex-basis: auto;
    }
}
