/* K-Leef Quote & Contact forms — frontend */

:root {
    --kleef-orange: #E59635;
    --kleef-black:  #1a1a1a;
    --kleef-radius: 6px;
    --kleef-border: #ddd;
}

/* ── Shared form styles ──────────────────────────────────────────────────── */

.kleef-qf-wrap,
.kleef-cf-wrap {
    margin: 24px 0;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--kleef-border);
    border-top: 3px solid var(--kleef-orange);
    border-radius: var(--kleef-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.kleef-qf-header h3,
.kleef-cf-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--kleef-black);
}

.kleef-qf-header p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

.kleef-qf-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kleef-qf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kleef-qf-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--kleef-black);
}

.kleef-qf-required {
    color: var(--kleef-orange);
}

.kleef-qf-field input,
.kleef-qf-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--kleef-border);
    border-radius: var(--kleef-radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--kleef-black);
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.kleef-qf-field input:focus,
.kleef-qf-field textarea:focus {
    outline: none;
    border-color: var(--kleef-orange);
    box-shadow: 0 0 0 3px rgba(229,150,53,.15);
    background: #fff;
}

.kleef-qf-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Product info line */
.kleef-qf-product-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff8ee;
    border: 1px solid #f5dba0;
    border-radius: var(--kleef-radius);
    font-size: 14px;
    color: #5a3e00;
}

.kleef-qf-product-info span {
    color: #888;
}

/* Submit button */
.kleef-qf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    background: var(--kleef-orange);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--kleef-radius);
    cursor: pointer;
    transition: background .15s, transform .1s;
    align-self: flex-start;
    font-family: inherit;
}

.kleef-qf-submit:hover {
    background: #c97e1f;
}

.kleef-qf-submit:active {
    transform: scale(.98);
}

/* Privacy note */
.kleef-qf-privacy {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* Error */
.kleef-qf-error {
    padding: 10px 14px;
    background: #fff0f0;
    border: 1px solid #f5a0a0;
    border-radius: var(--kleef-radius);
    color: #900;
    font-size: 14px;
    margin-bottom: 4px;
}

/* ── Success state ───────────────────────────────────────────────────────── */

.kleef-qf-success {
    text-align: center;
    padding: 12px 0;
}

.kleef-qf-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #d4edda;
    color: #155724;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 14px;
}

.kleef-qf-success h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--kleef-black);
}

.kleef-qf-success p {
    color: #555;
    font-size: 14px;
    margin: 0 0 20px;
}

/* WhatsApp button */
.kleef-qf-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #25d366;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--kleef-radius);
    text-decoration: none !important;
    transition: background .15s;
}

.kleef-qf-wa-btn:hover {
    background: #1da851;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .kleef-qf-wrap,
    .kleef-cf-wrap {
        padding: 20px 16px;
    }

    .kleef-qf-submit {
        width: 100%;
    }
}

/* ── Math captcha field ───────────────────────────────────────────────────── */

.kleef-qf-captcha label {
    font-size: 14px;
    font-weight: 600;
    color: var(--kleef-black);
}

.kleef-qf-captcha input[type="number"] {
    -moz-appearance: textfield;
}

.kleef-qf-captcha input[type="number"]::-webkit-outer-spin-button,
.kleef-qf-captcha input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ── intl-tel-input integration ─────────────────────────────────────────── */

.kleef-qf-field .iti {
    width: 100%;
}

.kleef-qf-field .iti input[type="tel"] {
    width: 100%;
    padding-left: 90px;
}

.iti__flag-container {
    z-index: 10;
}

/* Fix flag sprite path — override relative path from bundled CSS */
.iti__flag {
    background-image: url('intl-tel-input/img/flags.png');
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url('intl-tel-input/img/flags@2x.png');
    }
}
