/* ===========================================================================
   yatcustomquote — page formulaire de devis personnalisé
   =========================================================================== */

.yat-quote-page {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
    color: #1f2937;
}

.yat-quote-header {
    border-left: 4px solid #0f172a;
    padding-left: 16px;
    margin-bottom: 32px;
}

.yat-quote-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yat-quote-lead {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
}

.yat-quote-header p {
    margin: 0 0 4px;
    color: #4b5563;
}

/* ---------- Layout 2 colonnes (form + bloc contact) ---------- */
.yat-quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .yat-quote-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Formulaire ---------- */
.yat-quote-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 24px 32px;
}

.yat-quote-section {
    border: none;
    margin: 0 0 32px;
    padding: 0;
}

.yat-quote-section legend {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    padding: 0;
    color: #0f172a;
}

.yat-quote-intro {
    font-style: italic;
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 16px;
}

/* Champ */
.yat-quote-field {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: start;
    margin: 0 0 16px;
}

@media (max-width: 640px) {
    .yat-quote-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.yat-quote-field > label {
    font-size: 14px;
    color: #1f2937;
    padding-top: 10px;
}

.yat-quote-field .required {
    color: #dc2626;
    font-weight: 700;
}

.yat-quote-field input[type="text"],
.yat-quote-field input[type="email"],
.yat-quote-field input[type="tel"],
.yat-quote-field textarea,
.yat-quote-field select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    padding: 10px 12px;
    font-size: 14px;
    background: #f9fafb;
    color: #1f2937;
    font-family: inherit;
}

.yat-quote-field textarea {
    resize: vertical;
    min-height: 64px;
}

.yat-quote-field select[multiple] {
    min-height: 120px;
    background: #f9fafb;
}

.yat-quote-field input::placeholder,
.yat-quote-field textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.yat-quote-field input:focus,
.yat-quote-field textarea:focus,
.yat-quote-field select:focus {
    outline: none;
    border-color: #0f172a;
    background: #ffffff;
}

.yat-quote-field.has-error input,
.yat-quote-field.has-error textarea,
.yat-quote-field.has-error select {
    border-color: #dc2626;
}

.yat-quote-error {
    grid-column: 2 / -1;
    color: #dc2626;
    font-size: 13px;
    margin: 4px 0 0;
}

@media (max-width: 640px) {
    .yat-quote-error {
        grid-column: 1 / -1;
    }
}

.yat-quote-help {
    grid-column: 2 / -1;
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 640px) {
    .yat-quote-help {
        grid-column: 1 / -1;
    }
}

/* Champ fichier */
.yat-quote-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    padding: 8px 12px;
    background: #f9fafb;
    cursor: pointer;
    overflow: hidden;
}

.yat-quote-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.yat-quote-file-label {
    flex: 1;
    color: #9ca3af;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yat-quote-file-label.is-filled {
    color: #1f2937;
}

.yat-quote-file-optional {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
}

.yat-quote-file-button {
    background: #475569;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}

.yat-quote-upload-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Checkbox group */
.yat-quote-checkboxes-label {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #1f2937;
    margin: 0 0 12px;
    padding-top: 0;
}

.yat-quote-optional {
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
}

.yat-quote-checkboxes {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.yat-quote-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding-top: 0;
}

.yat-quote-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #0f172a;
}

/* Submit */
.yat-quote-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.yat-quote-submit {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 2px;
}

.yat-quote-submit:hover {
    background: #1e293b;
}

/* Honeypot caché aux humains */
.yat-quote-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.yat-quote-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Aside contact ---------- */
.yat-quote-contact {
    position: sticky;
    top: 24px;
}

.yat-quote-contact-card {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
}

.yat-quote-contact-icon {
    color: #0f172a;
    padding-top: 4px;
}

.yat-quote-contact-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.yat-quote-contact-body strong {
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 4px;
}

.yat-quote-contact-body address {
    font-style: normal;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.yat-quote-contact-body a {
    color: #0f172a;
    text-decoration: underline;
}

/* ---------- Confirmation ---------- */
.yat-quote-confirmation {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 48px 32px;
    text-align: center;
}

.yat-quote-confirmation-icon {
    color: #15803d;
    margin: 0 auto 16px;
}

.yat-quote-confirmation h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
}

.yat-quote-confirmation p {
    color: #4b5563;
    margin: 0 0 12px;
}

.yat-quote-confirmation .btn {
    margin-top: 16px;
}
