/* ============================================================
   DEMANDE DE DEVIS — Casa Cuir
   Service-based custom quote page
   Ultra-modern, mobile-first, responsive
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.dq-hero {
    padding: 40px 0 24px;
    background: linear-gradient(135deg, var(--bg-1, #f9f6f0) 0%, #fff 100%);
}
.dq-hero-badge {
    display: inline-block;
    background: var(--primary, #d4a853);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.dq-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text, #1a1a1a);
}
.dq-hero-text {
    color: var(--cl-text-2, #6b7280);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   CARD
   ============================================================ */
.dq-card {
    background: #fff;
    border: 1px solid var(--line, #ebebeb);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.dq-card--sticky {
    position: sticky;
    top: 100px;
}
.dq-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line, #ebebeb);
}
.dq-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.dq-card-title i { font-size: 1.2em; color: var(--primary, #d4a853); }

.dq-step-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary, #d4a853);
    background: rgba(212, 168, 83, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

/* ============================================================
   SERVICE TYPE CARDS
   ============================================================ */
.dq-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}
.dq-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border: 2px solid var(--line, #e5e5e5);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
}
.dq-service-card:hover {
    border-color: var(--primary, #d4a853);
    background: rgba(212, 168, 83, 0.03);
}
.dq-service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.dq-service-card input[type="radio"]:checked ~ .dq-service-icon {
    background: var(--primary, #d4a853);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}
.dq-service-card input[type="radio"]:checked ~ .dq-service-name {
    color: var(--primary, #d4a853);
}
.dq-service-card:has(input:checked) {
    border-color: var(--primary, #d4a853);
    background: rgba(212, 168, 83, 0.04);
    box-shadow: 0 2px 12px rgba(212, 168, 83, 0.12);
}
.dq-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-1, #f5f5f5);
    color: var(--text, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}
.dq-service-name {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
    transition: color 0.25s;
}
.dq-service-desc {
    font-size: 0.75rem;
    color: var(--cl-text-2, #999);
    line-height: 1.4;
}

/* ============================================================
   FORM INPUTS
   ============================================================ */
.dq-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text, #1a1a1a);
}
.dq-input,
.dq-select,
.dq-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line, #ddd);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text, #1a1a1a);
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.dq-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.dq-input:focus,
.dq-select:focus,
.dq-textarea:focus {
    border-color: var(--primary, #d4a853);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.12);
}
.dq-input.is-invalid,
.dq-select.is-invalid,
.dq-textarea.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.dq-error-msg {
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 4px;
}
.dq-textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   UPLOAD ZONE
   ============================================================ */
.dq-upload {
    position: relative;
    border: 2px dashed var(--line, #ddd);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--bg-1, #fafafa);
}
.dq-upload:hover,
.dq-upload.dragover {
    border-color: var(--primary, #d4a853);
    background: rgba(212, 168, 83, 0.04);
}
.dq-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.dq-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.dq-upload-content i {
    font-size: 1.6rem;
    color: var(--primary, #d4a853);
    margin-bottom: 4px;
}
.dq-upload-content span { font-size: 0.88rem; color: var(--text, #333); }
.dq-upload-content small { font-size: 0.75rem; color: var(--cl-text-2, #999); }

.dq-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.dq-upload-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line, #e5e5e5);
}
.dq-upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dq-upload-thumb-rm {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    line-height: 1;
}

/* ============================================================
   BENEFITS SIDEBAR
   ============================================================ */
.dq-benefit {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line, #f0f0f0);
}
.dq-benefit:last-child { border-bottom: none; }
.dq-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(212, 168, 83, 0.1);
    color: var(--primary, #d4a853);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.dq-benefit strong {
    font-size: 0.88rem;
    display: block;
    margin-bottom: 2px;
}
.dq-benefit p {
    font-size: 0.8rem;
    color: var(--cl-text-2, #888);
    line-height: 1.4;
    margin: 0;
}

/* ============================================================
   CONTACT SIDEBAR
   ============================================================ */
.dq-contact-text {
    font-size: 0.85rem;
    color: var(--cl-text-2, #666);
    margin-bottom: 16px;
    line-height: 1.5;
}
.dq-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.dq-contact-row i {
    font-size: 1.1rem;
    color: var(--primary, #d4a853);
    flex-shrink: 0;
}
.dq-contact-row a {
    color: var(--text, #1a1a1a);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.dq-contact-row a:hover { color: var(--primary, #d4a853); }

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.dq-submit-btn {
    font-size: 1rem;
    padding: 14px 24px;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   CONFIRMATION OVERLAY
   ============================================================ */
.dq-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.dq-confirm-overlay.active { display: flex; }
.dq-confirm-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    padding: 48px 32px;
    background: #fff;
    border: 1px solid var(--line, #ebebeb);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.dq-confirm-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #dcfce7;
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.dq-confirm-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.dq-confirm-text {
    color: var(--cl-text-2, #6b7280);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.dq-confirm-ref {
    font-size: 0.85rem;
    color: var(--cl-text-2, #999);
    margin-bottom: 24px;
}
.dq-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.dq-loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.dq-loading.active { display: flex; }
.dq-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--line, #e5e5e5);
    border-top-color: var(--primary, #d4a853);
    border-radius: 50%;
    animation: dqSpin 0.7s linear infinite;
}
@keyframes dqSpin { to { transform: rotate(360deg); } }
.dq-loading p {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text, #1a1a1a);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 575px) {
    .dq-hero { padding: 28px 0 16px; }
    .dq-hero-title { font-size: 1.4rem; }
    .dq-hero-text { font-size: 0.88rem; }
    .dq-service-grid { grid-template-columns: 1fr; gap: 10px; }
    .dq-service-card { flex-direction: row; text-align: left; gap: 12px; padding: 14px 16px; }
    .dq-service-icon { margin-bottom: 0; width: 42px; height: 42px; }
    .dq-card { padding: 16px; border-radius: 12px; }
    .dq-confirm-card { padding: 32px 20px; }
    .dq-confirm-actions { flex-direction: column; }
    .dq-confirm-actions .tf-btn { width: 100%; }
    .dq-upload { padding: 20px 12px; }
}

@media (min-width: 576px) and (max-width: 991px) {
    .dq-service-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
    .dq-hero-title { font-size: 2.1rem; }
    .dq-card { padding: 28px; }
}
