/*
 * landing-ux-polish.css
 * Scoped to .pi-step-subtitle, .pi-ship-icon, .pi-success-*, .pi-copy-btn,
 * .pi-chat-now-btn, .pi-reco-pulse-once, plus a few small, low-risk
 * consistency/accessibility tweaks to EXISTING classes (documented below).
 * Loaded last, so it safely overrides only what's listed here.
 */

/* ---- 1) Step subtitle ---- */
.pi-step-subtitle {
    font-size: 12.5px;
    color: #667085;
    margin-top: 2px;
}

/* ---- 3) Shipping icons ---- */
.pi-ship-icon {
    display: inline-block;
}

/* ---- 4) Success screen extras ---- */
.pi-success-extras {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.pi-success-order {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fff4;
    border: 1px dashed #4caf50;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13.5px;
}

.pi-copy-btn {
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: #2e7d32;
    cursor: pointer;
}

.pi-chat-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    cursor: pointer;
}

.pi-chat-now-btn:hover {
    opacity: 0.92;
}

/* ---- 5) One-time pulse highlight on the recommendation box ---- */
@keyframes piRecoPulseOnce {
    0%   { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(30, 136, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0); }
}
.pi-reco-pulse-once {
    animation: piRecoPulseOnce 1.3s ease-out 2;
    border-radius: 10px;
}

/* ================================================================
 * Small, low-risk consistency / accessibility tweaks to EXISTING
 * classes. Each rule only adjusts a couple of properties and is
 * loaded after the site's own stylesheets, so it wins on equal
 * specificity without needing !important or touching any HTML.
 * ================================================================ */

/* Consistent height/radius across all single-line text inputs. */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"] {
    height: 46px;
    border-radius: 9px;
    box-sizing: border-box;
}

/* WCAG-AA safer red for error messages (darker, higher contrast on white). */
.error-message {
    color: #c62828 !important;
}

/* Bigger, more thumb-friendly tap targets on mobile for wizard navigation. */
@media (max-width: 480px) {
    .btn-wizard-next,
    .btn-wizard-prev,
    .btn-submit {
        min-height: 46px;
    }
}

/* Small green checkmark on fields that have already passed validation -
   confirms progress as the customer fills the form, not only at the end. */
.form-group { position: relative; }
.form-group input.field-valid {
    background-image: none;
}
.form-group input.field-valid + .pi-valid-check,
.form-group .pname-ac-wrap input.field-valid ~ .pi-valid-check {
    display: inline-block;
}
