/* =====================================================================
   Digi-TECH Solution — Contact Form 7 Override Styles
   Makes CF7 output match the static site form exactly.
   Loaded on all pages.
   ===================================================================== */

/* Hide CF7 default message spans until needed */
.wpcf7 .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 12px;
    font-family: var(--font-body);
    margin-top: 4px;
    display: block;
}

/* Override CF7 form wrapper */
.wpcf7 form {
    margin: 0;
    padding: 0;
}

/* CF7 field containers — match .form-group */
.wpcf7 p {
    margin: 0 0 18px 0;
}

/* CF7 inputs, textareas, selects — match static site exactly */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0d5c0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    color: #444;
    background: #fafaf7;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251,179,73,0.18);
    background: #fff;
}

.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

/* CF7 submit button — match .form-submit */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--dark);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 15px rgba(251,179,73,0.35);
    margin-top: 8px;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251,179,73,0.45);
}

/* CF7 response messages */
.wpcf7-response-output {
    margin: 12px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    border: none !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    background: #fde8e8;
    color: #c62828;
    border-left: 4px solid #ef5350 !important;
}

/* CF7 invalid field highlight */
.wpcf7 .wpcf7-not-valid {
    border-color: #e74c3c !important;
}

/* CF7 loading spinner */
.wpcf7 .ajax-loader {
    display: none;
}
