/* ================================================================== */
/*  Quote Form — Front-end Styles                                      */
/*                                                                     */
/*  Uses CSS custom properties for easy theming.                       */
/*  Override these in your theme or via the custom CSS editor.         */
/* ================================================================== */

:root {
    --qf-font:            inherit;
    --qf-color:           #1d2327;
    --qf-color-light:     #6b7280;
    --qf-color-primary:   #6c5ce7;
    --qf-color-success:   #00b894;
    --qf-color-error:     #d63031;
    --qf-bg:              #ffffff;
    --qf-bg-input:        #ffffff;
    --qf-border:          #d1d5db;
    --qf-border-focus:    #6c5ce7;
    --qf-radius:          8px;
    --qf-radius-sm:       6px;
    --qf-gap:             20px;
    --qf-input-h:         44px;
    --qf-shadow-focus:    0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* ------------------------------------------------------------------ */
/*  Wrapper                                                            */
/* ------------------------------------------------------------------ */
.quote-form-wrapper {
    font-family: var(--qf-font);
    color: var(--qf-color);
    max-width: 720px;
    margin: 0 auto;
}

.quote-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--qf-gap);
}

/* ------------------------------------------------------------------ */
/*  Fields                                                             */
/* ------------------------------------------------------------------ */
.quote-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quote-field--half {
    width: calc(50% - var(--qf-gap) / 2);
}

@media (max-width: 600px) {
    .quote-field--half { width: 100%; }
}

/* Labels */
.quote-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--qf-color);
}

.quote-req {
    color: var(--qf-color-error);
    margin-left: 2px;
}

.quote-help {
    font-size: 12px;
    color: var(--qf-color-light);
    line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/*  Inputs                                                             */
/* ------------------------------------------------------------------ */
.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form input[type="url"],
.quote-form input[type="number"],
.quote-form input[type="date"],
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 0 14px;
    height: var(--qf-input-h);
    font-size: 15px;
    font-family: inherit;
    color: var(--qf-color);
    background: var(--qf-bg-input);
    border: 1px solid var(--qf-border);
    border-radius: var(--qf-radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.quote-form textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.5;
}

.quote-form select {
    appearance: auto;
    cursor: pointer;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: var(--qf-border-focus);
    box-shadow: var(--qf-shadow-focus);
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: #9ca3af;
}

/* Invalid state */
.quote-form input:invalid:not(:placeholder-shown),
.quote-form textarea:invalid:not(:placeholder-shown),
.quote-form select:invalid {
    border-color: var(--qf-color-error);
}

/* ------------------------------------------------------------------ */
/*  File input                                                         */
/* ------------------------------------------------------------------ */
.quote-form input[type="file"] {
    padding: 10px;
    height: auto;
    background: #f9fafb;
    border: 1px dashed var(--qf-border);
    border-radius: var(--qf-radius-sm);
    cursor: pointer;
    font-size: 14px;
}

.quote-form input[type="file"]:hover {
    border-color: var(--qf-border-focus);
    background: #f5f3ff;
}

/* ------------------------------------------------------------------ */
/*  Checkboxes & Radios                                                */
/* ------------------------------------------------------------------ */
.quote-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
}

.quote-option input[type="checkbox"],
.quote-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--qf-color-primary);
    cursor: pointer;
}

/* ------------------------------------------------------------------ */
/*  Submit button                                                      */
/* ------------------------------------------------------------------ */
.quote-submit {
    padding-top: 4px;
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: var(--qf-color-primary);
    border: none;
    border-radius: var(--qf-radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.quote-btn:hover {
    background: #5b4bd5;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.quote-btn:active {
    transform: scale(0.98);
}

.quote-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ------------------------------------------------------------------ */
/*  Messages                                                           */
/* ------------------------------------------------------------------ */
.quote-message {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--qf-radius-sm);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.quote-message--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.quote-message--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ------------------------------------------------------------------ */
/*  Honeypot (hidden from view)                                        */
/* ------------------------------------------------------------------ */
.quote-hp {
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* ------------------------------------------------------------------ */
/*  CAPTCHA                                                            */
/* ------------------------------------------------------------------ */
.quote-captcha {
    padding: 4px 0;
}

/* Responsive CAPTCHA */
.quote-captcha .g-recaptcha,
.quote-captcha .h-captcha {
    transform-origin: left top;
}

@media (max-width: 400px) {
    .quote-captcha .g-recaptcha,
    .quote-captcha .h-captcha {
        transform: scale(0.85);
    }
}
