/* ==========================================================================
   Aigentix – Consultation Section Styles
   assets/css/consultation.css
   One file governs ALL service consultation pages.
   ========================================================================== */

/* ── Outer section ──────────────────────────────────────────────────────── */
.aigentix-consultation-section {
    background-color: var(--row-color, #f8f9fa);
}

/* ── Section title & description ────────────────────────────────────────── */
.aigentix-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--heading-color, #1a1a2e);
    margin-bottom: 1rem;
}

.aigentix-section-desc {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ── White card wrapper ──────────────────────────────────────────────────── */
.discuss-form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 3rem);
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.aigentix-form-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color, #1a1a2e);
    margin-bottom: 0.4rem;
}

.aigentix-form-subtext {
    color: #6c757d;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

/* ── CF7 field overrides ─────────────────────────────────────────────────── */
.aigentix-cf7-wrapper .wpcf7-form {
    /* Remove any CF7 default margins */
    margin: 0;
}

/* Row layout: Name / Email side-by-side */
.aigentix-cf7-wrapper .cf7-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.aigentix-cf7-wrapper .cf7-row .cf7-col {
    flex: 1 1 200px;
}

.aigentix-cf7-wrapper .cf7-col,
.aigentix-cf7-wrapper .cf7-full {
    margin-bottom: 1.25rem;
}

/* Inputs & textarea */
.aigentix-cf7-wrapper input[type="text"],
.aigentix-cf7-wrapper input[type="email"],
.aigentix-cf7-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d0d7de;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1a1a2e;
    background-color: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.aigentix-cf7-wrapper input[type="text"]:focus,
.aigentix-cf7-wrapper input[type="email"]:focus,
.aigentix-cf7-wrapper textarea:focus {
    border-color: var(--brand-primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    background: #fff;
}

/* Validation error state */
.aigentix-cf7-wrapper .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.aigentix-cf7-wrapper .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 0.3rem;
    display: block;
}

/* Hidden lead_source field – keep it invisible */
.aigentix-cf7-wrapper input[name="lead_source"] {
    display: none !important;
}

/* Textarea */
.aigentix-cf7-wrapper textarea {
    min-height: 140px;
    resize: vertical;
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.aigentix-cf7-wrapper input[type="submit"],
.aigentix-cf7-wrapper .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--brand-primary, #3b82f6);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
}

.aigentix-cf7-wrapper input[type="submit"]:hover,
.aigentix-cf7-wrapper .wpcf7-submit:hover {
    background: var(--brand-primary-dark, #0b5ed7);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
    transform: translateY(-2px);
}

.aigentix-cf7-wrapper input[type="submit"]:active,
.aigentix-cf7-wrapper .wpcf7-submit:active {
    transform: translateY(0);
}

/* Spinner while submitting */
.aigentix-cf7-wrapper .wpcf7-spinner {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ── CF7 response output (success / error) ───────────────────────────────── */
.aigentix-cf7-wrapper .wpcf7-response-output {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    border: none !important;
}

/* Success */
.aigentix-cf7-wrapper .wpcf7-mail-sent-ok {
    background: #d1e7dd;
    color: #0f5132;
}

/* Error */
.aigentix-cf7-wrapper .wpcf7-mail-sent-ng,
.aigentix-cf7-wrapper .wpcf7-aborted {
    background: #f8d7da;
    color: #842029;
}

/* Spam / validation */
.aigentix-cf7-wrapper .wpcf7-spam-blocked,
.aigentix-cf7-wrapper .wpcf7-validation-errors {
    background: #fff3cd;
    color: #664d03;
}

/* ── Entrance animation (matches existing .animate.show pattern) ─────────── */
.aigentix-consultation-section .animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.aigentix-consultation-section .animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .discuss-form-section {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .aigentix-cf7-wrapper .cf7-row {
        flex-direction: column;
        gap: 0;
    }
}
