/* Matches peptara's .contact-form-section + .form-wrapper exactly (style.css:3657-3699,
   955-1035). The CF7 form itself (built in wp-admin) uses the same .form-row /
   .input-wrapper / .form-row--lg markup as the original theme's contact-form.html. */
.contact-form-section {
    margin-top: 100px;
    margin-bottom: 100px;
}
@media screen and (max-width: 1200px) {
    .contact-form-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}
@media screen and (max-width: 600px) {
    .contact-form-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}
.contact-form-section .contact-form-inner {
    max-width: 768px;
    margin: 0 auto;
}
@media screen and (max-width: 1320px) {
    .contact-form-section .contact-form-inner {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.form-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    border: 0 solid #e5e7eb;
    background: #fff;
    box-shadow:
        0 4px 6px 0 rgba(0, 0, 0, 0.1),
        0 10px 15px 0 rgba(0, 0, 0, 0.1);
    padding: 40px;
}
@media screen and (max-width: 550px) {
    .form-wrapper {
        padding: 20px;
    }
}
.form-wrapper h2 {
    color: #1f2937;
    font-size: 30px;
    font-weight: 700;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 1rem;
}
@media screen and (max-width: 600px) {
    .form-wrapper h2 {
        font-size: 24px;
    }
}

.form-wrapper .form-row {
    margin-bottom: 15px;
}
.form-wrapper .form-row .input-wrapper {
    display: flex;
    flex-flow: column;
    gap: 3px;
}
/* CF7 runs form content through wpautop, which wraps each field's label + form-tag in
   a <p> (with a <br> between them) since our template doesn't otherwise look like
   block-level HTML — that <p> then picks up the theme's generic paragraph margin
   (16px/24px), roughly doubling each field's actual height. Neutralize it here. */
.form-wrapper .form-row .input-wrapper p {
    margin: 0;
    display: flex;
    flex-flow: column;
    gap: 3px;
}
.form-wrapper .form-row .input-wrapper br {
    display: none;
}
.form-wrapper .form-row .input-wrapper label {
    display: inline;
    color: #374151;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 8px;
}
@media screen and (max-width: 768px) {
    .form-wrapper .form-row .input-wrapper label {
        font-size: 14px;
    }
}
.form-wrapper .form-row .input-wrapper input,
.form-wrapper .form-row .input-wrapper textarea,
.form-wrapper .form-row .input-wrapper select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    outline: none;
    padding: 16px 16px;
    color: #343632;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    font-family: var(--font-primary);
}
.form-wrapper .form-row .input-wrapper input::placeholder,
.form-wrapper .form-row .input-wrapper textarea::placeholder {
    color: #adaebc;
}
@media screen and (max-width: 768px) {
    .form-wrapper .form-row .input-wrapper input,
    .form-wrapper .form-row .input-wrapper textarea,
    .form-wrapper .form-row .input-wrapper select {
        font-size: 14px;
    }
}
.form-wrapper .form-row .input-wrapper textarea {
    height: 113px;
    resize: vertical;
}
.form-wrapper .form-row--lg {
    display: flex;
    gap: 24px;
}
@media screen and (max-width: 550px) {
    .form-wrapper .form-row--lg {
        flex-wrap: wrap;
    }
}
.form-wrapper .form-row--lg .input-wrapper {
    width: 50%;
}
@media screen and (max-width: 550px) {
    .form-wrapper .form-row--lg .input-wrapper {
        width: 100%;
    }
}

/* Submit button — matches the theme's .btn-orange primary-button styling. */
.form-wrapper .form-btn {
    border-radius: 40px;
    border: 0 solid #e5e7eb;
    background: #456e89;
    box-shadow:
        0 2px 4px 0 rgba(0, 0, 0, 0.1),
        0 4px 6px 0 rgba(0, 0, 0, 0.1);
    padding: 16px 32px;
    min-width: 182px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    cursor: pointer;
    transition:
        background 0.3s linear,
        color 0.3s linear;
}
.form-wrapper .form-btn:hover {
    background: #fff !important;
    color: #456e89;
}

.contact-form-placeholder {
    color: var(--color-text);
    font-style: italic;
    margin: 0;
}
.form-wrapper .wpcf7-not-valid-tip {
    color: #e60023;
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}
.form-wrapper .wpcf7-response-output {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin: 1rem 0 0 0;
}
