/* ── WP Quotation – Frontend Styles ──
   Semua nilai default di sini bisa di-override oleh
   Elementor Style Controls via {{WRAPPER}} selector.
──────────────────────────────────────── */

/* WRAPPER */
.wpq-form-wrap {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,.10);
    padding: 36px 40px;
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* HEADER */
.wpq-form-header  { margin-bottom: 28px; text-align: center; }
.wpq-form-title   { font-size: 1.6em; font-weight: 700; color: #1a1a2e; margin: 0 0 8px; line-height: 1.3; }
.wpq-form-subtitle{ color: #666; margin: 0; font-size: .95em; line-height: 1.5; }

/* GRID */
.wpq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 600px) {
    .wpq-row { grid-template-columns: 1fr; }
    .wpq-form-wrap { padding: 24px 20px; }
}

/* FIELD WRAPPER */
.wpq-field { display: flex; flex-direction: column; margin-bottom: 0; }

/* LABEL */
.wpq-field label {
    font-size: .82em;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    letter-spacing: .02em;
    text-transform: uppercase;
    display: block;
}
.wpq-required { color: #0073aa; }

/* INPUTS — all properties overrideable via Elementor selectors */
.wpq-field input,
.wpq-field select,
.wpq-field textarea {
    border: 1px solid #dde1e7;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .95em;
    color: #222;
    background-color: #fafbfc;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

/* SELECT arrow */
.wpq-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* FOCUS — overrideable */
.wpq-field input:focus,
.wpq-field select:focus,
.wpq-field textarea:focus {
    border-color: #0073aa;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0,115,170,.15);
}

/* ERROR state */
.wpq-field input.wpq-error,
.wpq-field select.wpq-error,
.wpq-field textarea.wpq-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,.12) !important;
}

/* TEXTAREA */
.wpq-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* SINGLE FIELD ROW (full width) */
.wpq-field-full { margin-bottom: 16px; }

/* SUBMIT WRAP */
.wpq-submit-wrap { margin-top: 20px; }

/* BUTTON — all properties overrideable via Elementor selectors */
.wpq-btn-submit {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color .2s, color .2s, box-shadow .2s, border-color .2s, opacity .2s, transform .1s;
    letter-spacing: .02em;
    font-family: inherit;
    line-height: 1.4;
    display: inline-block;
    text-align: center;
}
.wpq-btn-submit:hover    { opacity: .88; }
.wpq-btn-submit:active   { transform: scale(.98); }
.wpq-btn-submit:disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* MESSAGES */
.wpq-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: .95em;
    line-height: 1.5;
}
.wpq-message--success {
    background: #eafaf1;
    border: 1px solid #2ecc71;
    color: #1a7a42;
}
.wpq-message--error {
    background: #fef0f0;
    border: 1px solid #e74c3c;
    color: #c0392b;
}
