/* ─── Andre Repair Pricing — Quote Form Styles ────────────────────────────── */

/* Hide the WP/Divi page title on contact-us so it matches repair-quote layout */
.page-id-6159 .entry-title,
.page-id-6159 h1.page-title,
.page-id-6159 .et_pb_title_container { display: none !important; }

.aar-quote-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}


/* ── Selection trail (breadcrumb) ────────────────────────────────────────── */
.aar-trail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 18px;
    padding: 8px 14px;
    background: #f0f4ff;
    border: 1px solid #d0dffe;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.4;
}
.aar-crumb {
    color: #1a73e8;
    font-weight: 600;
}
.aar-crumb-sep {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 2px;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.aar-progress-wrap {
    margin-bottom: 28px;
}

.aar-progress-bar {
    background: #e8e8e8;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}

.aar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.aar-step-label {
    font-size: 0.82rem;
    color: #888;
    margin: 6px 0 0 0;
    text-align: right;
}

/* ── Step headings ───────────────────────────────────────────────────────── */
.aar-step-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
}

/* ── Device cards (Step 1) ───────────────────────────────────────────────── */
.aar-device-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.aar-device-card {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
}

.aar-device-card input[type="radio"] { display: none; }

.aar-device-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 16px rgba(26,115,232,0.12);
    transform: translateY(-2px);
}

.aar-device-card.selected {
    border-color: #1a73e8;
    background: #e8f0fe;
    box-shadow: 0 4px 16px rgba(26,115,232,0.18);
}

.aar-card-icon {
    font-size: 2.4rem;
    line-height: 1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.aar-card-icon svg { display: block; height: 72px; width: auto; }
.aar-device-card:hover .aar-card-icon  { color: #1a73e8; }
.aar-device-card.selected .aar-card-icon { color: #1a73e8; }
.aar-card-label { font-size: 1rem; font-weight: 600; color: #333; }

/* ── Step navigation ────────────────────────────────────────────────────── */
.aar-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 16px;
}

.aar-step-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 160px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.aar-btn-next {
    background: #1a3a5c;
    color: #fff;
    margin-left: auto;
}

.aar-btn-next:hover {
    background: #0d2b47;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,58,92,0.3);
}

.aar-btn-prev {
    background: #1a3a5c;
    color: #fff;
}

.aar-btn-prev:hover {
    background: #0d2b47;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,58,92,0.3);
}

/* ── Consistent step height ─────────────────────────────────────────────── */
.aar-step {
    min-height: 280px;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.aar-field-wrap {
    margin-bottom: 16px;
}

.aar-field-wrap label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.aar-field-hint {
    font-weight: 400;
    color: #888;
    font-size: 0.8rem;
    margin-left: 6px;
}

.aar-input,
.aar-select,
.aar-textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1.5px solid #d0d0d0 !important;
    border-radius: 8px !important;
    font-size: 0.95rem;
    font-family: inherit;
    color: #222 !important;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box !important;
    -webkit-box-sizing: border-box !important;
    max-width: 100% !important;
    display: block !important;
}

/* Select-specific overrides to prevent OS-level text clipping */
.aar-select {
    height: 48px !important;
    line-height: 1.5 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 36px !important; /* space for custom arrow */
    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='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    cursor: pointer !important;
}

.aar-input:focus,
.aar-select:focus,
.aar-textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.aar-input.aar-error,
.aar-select.aar-error {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

.aar-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

@media (max-width: 520px) {
    .aar-fields-grid { grid-template-columns: 1fr; }
}

/* ── Estimate box (Step 4) ───────────────────────────────────────────────── */
.aar-estimate-box {
    background: #f8f9ff;
    border: 2px solid #c5d8fb;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.aar-estimate-loading {
    color: #888;
    font-size: 0.95rem;
}

.aar-estimate-label {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aar-estimate-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1a73e8;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.aar-estimate-note {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
    font-style: italic;
}

.aar-estimate-unavailable .aar-estimate-price {
    font-size: 1.1rem;
    color: #555;
}

/* ── Contact pills (Step 6) ──────────────────────────────────────────────── */
.aar-contact-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.aar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #d0d0d0;
    border-radius: 99px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: #444;
    background: #fff;
    transition: all 0.15s;
}

.aar-pill:hover { border-color: #1a73e8; color: #1a73e8; }
.aar-pill input[type="radio"] { display: none; }
.aar-pill.selected {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
}

/* ── Navigation buttons ──────────────────────────────────────────────────── */
/* (base .aar-step-nav is defined earlier — these are button-specific rules) */

.aar-btn-next,
.aar-btn-submit {
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: inherit;
    min-width: 160px;
    text-align: center;
}

.aar-btn-next:hover,
.aar-btn-submit:hover {
    background: #0d2b47;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26,58,92,0.3);
}

.aar-btn-next:disabled,
.aar-btn-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Spinner inside submit button */
.aar-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aar-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes aar-spin {
    to { transform: rotate(360deg); }
}

.aar-btn-prev {
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: inherit;
    min-width: 160px;
    text-align: center;
}

.aar-btn-prev:hover {
    background: #0d2b47;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26,58,92,0.3);
}

/* ── Error display ───────────────────────────────────────────────────────── */
.aar-form-error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-radius: 8px;
    padding: 12px 16px;
    color: #c62828;
    font-size: 0.88rem;
    margin-top: 12px;
}

/* ── Confirmation screen ─────────────────────────────────────────────────── */
.aar-confirmation {
    text-align: center;
    padding: 24px 0;
}

.aar-confirm-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.aar-confirmation h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e7e34;
    margin: 0 0 8px 0;
}

.aar-confirm-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 20px 0;
}

.aar-confirm-summary {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.aar-btn-whatsapp {
    display: inline-block;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    padding: 13px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-top: 8px;
}

.aar-btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    color: #fff;
    text-decoration: none;
}

/* ── Divi embed overrides — fight Divi's global CSS resets ──────────────── */
.et_pb_code .aar-quote-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.et_pb_code .aar-progress-wrap {
    margin-bottom: 36px !important;
}

.et_pb_code .aar-step-label {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.et_pb_code .aar-step-heading {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 12px 0 28px 0 !important;
}

.et_pb_code .aar-device-cards {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 36px !important;
}

.et_pb_code .aar-device-card {
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 28px 20px !important;
    background: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

.et_pb_code .aar-device-card:hover {
    border-color: #1a73e8 !important;
    box-shadow: 0 4px 16px rgba(26,115,232,0.12) !important;
    transform: translateY(-2px) !important;
}

.et_pb_code .aar-device-card.selected {
    border-color: #1a73e8 !important;
    background: #e8f0fe !important;
    box-shadow: 0 4px 16px rgba(26,115,232,0.18) !important;
}

.et_pb_code .aar-card-icon svg {
    display: block !important;
    height: 72px !important;
    width: auto !important;
}

.et_pb_code .aar-card-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.et_pb_code .aar-progress-bar {
    background: #e8e8e8 !important;
    border-radius: 99px !important;
    height: 8px !important;
    overflow: hidden !important;
}

.et_pb_code .aar-progress-fill {
    background: linear-gradient(90deg, #1a73e8, #0d47a1) !important;
    height: 100% !important;
}

.et_pb_code .aar-step-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 28px !important;
    gap: 16px !important;
}

.et_pb_code .aar-step-nav button,
.et_pb_code .aar-btn-next,
.et_pb_code .aar-btn-prev {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 160px !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
    background: #1a3a5c !important;
    color: #fff !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.et_pb_code .aar-trail {
    margin-bottom: 24px !important;
}

.et_pb_code .aar-field-wrap {
    margin-bottom: 20px !important;
}

.et_pb_code .aar-field-wrap label {
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.et_pb_code .aar-field-wrap select,
.et_pb_code .aar-field-wrap input,
.et_pb_code .aar-field-wrap textarea {
    padding: 10px 14px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    background: #fff !important;
    color: #222 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.et_pb_code .aar-textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* ── Divi: Contact & appointment pills (Step 6) ─────────────────────────── */
.et_pb_code .aar-contact-pills {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 4px !important;
}

.et_pb_code .aar-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 1.5px solid #d0d0d0 !important;
    border-radius: 99px !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #444 !important;
    background: #fff !important;
    transition: all 0.15s !important;
}

.et_pb_code .aar-pill:hover {
    border-color: #1a73e8 !important;
    color: #1a73e8 !important;
}

.et_pb_code .aar-pill input[type="radio"] {
    display: none !important;
}

.et_pb_code .aar-pill.selected {
    border-color: #1a73e8 !important;
    background: #e8f0fe !important;
    color: #1a73e8 !important;
}

/* ── Divi: Submit button matching nav buttons ────────────────────────────── */
.et_pb_code .aar-btn-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 160px !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
    background: #1a3a5c !important;
    color: #fff !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

/* ── Divi: Confirmation screen ───────────────────────────────────────────── */
.et_pb_code .aar-confirm-icon {
    font-size: 2.5rem !important;
    text-align: center !important;
    margin-bottom: 12px !important;
}

.et_pb_code .aar-confirm-summary {
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 0.88rem !important;
    line-height: 1.8 !important;
    color: #333 !important;
}
