/* ===== Homepage hero with contact form ===== */
.hero--with-form {
    text-align: left;
}

.hero--with-form .hero__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    width: 100%;
}

.hero--with-form .hero__content {
    flex: 1 1 50%;
    max-width: 35rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero--with-form .hero__content .hero__subtitle,
.hero--with-form .hero__content .hero__title,
.hero--with-form .hero__content .hero__text {
    max-width: 100%;
    text-align: left;
}

.hero--with-form .hero__form-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 29rem;
}

/* Form card */
.hero-form {
    background: #252525;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 28px;
}

.hero-form__row {
    margin-bottom: 16px;
    text-align: left;
}

.hero-form__label {
    display: block;
    margin-bottom: 6px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
}

.hero-form .wpcf7-form-control-wrap {
    display: block;
}

.hero-form input[type="text"],
.hero-form input[type="email"],
.hero-form input[type="tel"],
.hero-form input[type="number"],
.hero-form select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    outline: none;
    transition: border-color .2s ease;
}

.hero-form input:focus,
.hero-form select:focus {
    border-color: #fff;
}

.hero-form select {
    padding: 12px 14px;
    color: var(--primary);
}

.hero-form select option {
    color: #000;
}

.hero-form input::placeholder {
    color: rgba(255, 255, 255, .4);
}

/* Hide number spinners */
.hero-form input[type=number]::-webkit-outer-spin-button,
.hero-form input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hero-form input[type=number] {
    -moz-appearance: textfield;
}

/* Submit */
.hero-form .wpcf7-submit {
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
}

.hero-form .wpcf7-spinner {
    position: absolute;
}

/* CF7 validation / response */
.hero-form .wpcf7-not-valid {
    border-color: #ff6b6b !important;
}

.hero-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #ff8a8a;
}

.hero-form .wpcf7-response-output {
    margin: 14px 0 0 !important;
    padding: 10px 14px !important;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero--with-form .hero__container {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }

    .hero--with-form .hero__content {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero--with-form .hero__form-wrap {
        max-width: 32rem;
        margin: 0 auto;
    }
}
