/**
 * Contact Form 7 – MyGenetix theme styles
 * Matches theme design system: navy labels, white inputs, primary focus/CTA
 */

/* Form layout – vertical spacing (matches fallback space-y-5) */
.wpcf7 .wpcf7-form p,
.wpcf7 .wpcf7-form .wpcf7-form-control-wrap {
    margin-bottom: 1.25rem;
}

.wpcf7 .wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

/* Labels */
.wpcf7 .wpcf7-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #172B54;
    margin-bottom: 8px;
    font-family: 'DM Sans', sans-serif;
}

/* Required indicator */
.wpcf7 .wpcf7-form .required {
    color: #F92C24;
}

/* Text inputs, email, textarea (exclude submit, checkbox, radio) */
.wpcf7 .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    color: #172B54;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wpcf7 .wpcf7-form-control::placeholder {
    color: #9CA3AF;
}

.wpcf7 .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):focus {
    outline: none;
    border-color: #F92C24;
    box-shadow: 0 0 0 4px rgba(249, 44, 36, 0.1);
}

/* Textarea */
.wpcf7 .wpcf7-form-control.wpcf7-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Submit button */
.wpcf7 .wpcf7-form-control.wpcf7-submit {
    background: linear-gradient(135deg, #F92C24 0%, #FA564F 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: box-shadow 0.2s, filter 0.2s;
}

.wpcf7 .wpcf7-form-control.wpcf7-submit:hover {
    box-shadow: 0 8px 40px rgba(249, 44, 36, 0.25);
    filter: brightness(1.02);
}

/* Validation – invalid field */
.wpcf7 .wpcf7-form-control.wpcf7-not-valid {
    border-color: #F92C24;
}

.wpcf7 .wpcf7-not-valid-tip {
    font-size: 13px;
    color: #F92C24;
    margin-top: 4px;
}

/* Response output (success / error / validation message) */
.wpcf7 .wpcf7-response-output {
    margin-top: 1.25rem;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.wpcf7 .wpcf7-mail-sent-ok {
    border: 1px solid #d1fae5;
    background: #ecfdf5;
    color: #065f46;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-validation-errors {
    border: 1px solid #FEB2B0;
    background: #FFF5F5;
    color: #991b1b;
}