/*
 * RFQ (Request a Quote) Page Styles
 *
 * Dedicated CSS for page-request-quote.php template.
 * BEM methodology, mobile-first.
 * Uses CSS custom properties from theme.json.
 *
 * @package FlashGL
 */

/* ==========================================================================
   RFQ Form (Request a Quote page)
   ========================================================================== */

.rfq-form {
    background: #fff;
    border: 1px solid var(--wp--preset--color--gray-100);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

@media (max-width: 640px) {
    .rfq-form { padding: 1.25rem; }
}

/* Section title */
.rfq-form__title {
    font-size: var(--wp--preset--font-size--xl, 1.25rem);
    font-weight: 700;
    color: var(--wp--preset--color--gray-800);
    margin: 0 0 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid var(--wp--preset--color--gray-100);
}

/* Row with two columns */
.rfq-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .rfq-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* Field wrapper */
.rfq-form__field {
    margin-bottom: 1.5rem;
}

.rfq-form__field label {
    display: block;
    font-size: var(--wp--preset--font-size--sm, 0.875rem);
    font-weight: 600;
    color: var(--wp--preset--color--gray-700);
    margin-bottom: 0.4rem;
}

.rfq-form__field .required { color: var(--flashgl-accent, #D00020); margin-left: 2px; }

/* Input / Select / Textarea */
.rfq-form__field input[type="text"],
.rfq-form__field input[type="email"],
.rfq-form__field input[type="tel"],
.rfq-form__field input[type="datetime-local"],
.rfq-form__field select,
.rfq-form__field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--wp--preset--color--gray-200);
    border-radius: 10px;
    font-size: var(--wp--preset--font-size--base, 1rem);
    font-family: inherit;
    background: #FAFBFC;
    color: var(--wp--preset--color--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.rfq-form__field input:focus,
.rfq-form__field select:focus,
.rfq-form__field textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #1A2B8C);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,43,140,0.06);
}

.rfq-form__field select { cursor: pointer; appearance: none; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; }

.rfq-form__field textarea { min-height: 100px; resize: vertical; }

/* Placeholder */
.rfq-form__field ::placeholder { color: var(--wp--preset--color--gray-300, #D1D5DB); }

/* Radio group */
.rfq-form__radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

@media (max-width: 480px) {
    .rfq-form__radio-group { grid-template-columns: 1fr; }
}

.rfq-form__radio {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--wp--preset--color--gray-200);
    border-radius: 10px;
    cursor: pointer;
    background: #FAFBFC;
    transition: border-color 0.2s, background 0.2s;
}

.rfq-form__radio:hover { background: #F0F4FF; }

.rfq-form__radio:has(input:checked) {
    border-color: var(--wp--preset--color--primary, #1A2B8C);
    background: #F0F4FF;
}

.rfq-form__radio input[type="radio"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--wp--preset--color--primary, #1A2B8C);
}

.rfq-form__radio-label strong {
    display: block;
    font-size: var(--wp--preset--font-size--sm, 0.875rem);
    color: var(--wp--preset--color--gray-800);
}

.rfq-form__radio-label small {
    display: block;
    font-size: var(--wp--preset--font-size--xs, 0.75rem);
    color: var(--wp--preset--color--gray-500);
    margin-top: 0.15rem;
}

/* File upload */
.rfq-form__file-upload {
    padding: 1.5rem;
    border: 2px dashed var(--wp--preset--color--gray-200);
    border-radius: 12px;
    text-align: center;
    background: #FAFBFC;
    transition: border-color 0.2s, background 0.2s;
}

.rfq-form__file-upload:hover {
    border-color: var(--wp--preset--color--primary, #1A2B8C);
    background: #F0F4FF;
}

.rfq-form__file-upload input[type="file"] {
    width: 100%;
    font-size: var(--wp--preset--font-size--sm, 0.875rem);
}

.rfq-form__hint {
    font-size: var(--wp--preset--font-size--xs, 0.75rem);
    color: var(--wp--preset--color--gray-400);
    margin-top: 0.6rem;
    line-height: 1.4;
}

/* GDPR Checkbox */
.rfq-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: var(--wp--preset--font-size--sm, 0.875rem);
    color: var(--wp--preset--color--gray-600);
    line-height: 1.45;
}

.rfq-form__checkbox input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--wp--preset--color--primary, #1A2B8C);
}

/* Divider */
.rfq-form__divider {
    margin: 2.5rem 0 2rem;
    border: none;
    border-top: 1px solid var(--wp--preset--color--gray-100);
}

/* Submit button */
.rfq-form__submit {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.rfq-form__submit .btn { min-width: 240px; justify-content: center; }

.rfq-form__submit-hint {
    font-size: var(--wp--preset--font-size--xs, 0.75rem);
    color: var(--wp--preset--color--gray-400);
    margin: 0;
}

.rfq-form__recaptcha-notice {
    font-size: 0.6875rem;
    color: var(--wp--preset--color--gray-300, #D1D5DB);
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.rfq-form__recaptcha-notice a {
    color: var(--wp--preset--color--gray-300, #D1D5DB);
    text-decoration: underline;
}

.rfq-form__recaptcha-notice a:hover { color: var(--wp--preset--color--gray-400, #9CA3AF); }
