/* ============================================================
   GLOBAL FORM WRAPPER
   ============================================================ */
.hp-form-wrapper {
    max-width: 640px; /* +20px wider as you requested */
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 768px) {
    .hp-form-wrapper {
        max-width: 100%;
        padding: 22px;
    }
}

/* ============================================================
   TITLES / HEADINGS
   ============================================================ */
.hp-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #2187cc;
    margin-bottom: 6px;
}

.hp-form-tagline {
    font-size: 14px;
    color: #666;
    margin-bottom: 22px;
}

/* ============================================================
   FIELD DESIGN
   ============================================================ */
.hp-field {
    margin-bottom: 18px;
}

.hp-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* Input / Select / Textarea */
.hp-field input,
.hp-field select,
.hp-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    background: #fafafa;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    transition: 0.2s ease;
}

.hp-field input:focus,
.hp-field select:focus,
.hp-field textarea:focus {
    border-color: #2187cc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33,135,204,0.15);
    outline: none;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.hp-2col,
.hp-3col {
    display: grid;
    gap: 14px;
}

.hp-2col { grid-template-columns: 1fr 1fr; }
.hp-3col { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
    .hp-2col,
    .hp-3col {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RADIO BUTTON TAG STYLE (Unit / Material / Finish / Qty)
   ============================================================ */
.hp-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-option-buttons label {
    cursor: pointer;
    position: relative;
}

.hp-option-buttons input[type="radio"] {
    display: none;
}

.hp-option-buttons span {
    padding: 9px 14px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #dcdcdc;
    font-size: 13px;
    transition: 0.2s;
    display: inline-block;
}

.hp-option-buttons input[type="radio"]:checked + span {
    background: #2187cc;
    color: #fff;
    border-color: #2187cc;
}

/* ============================================================
   STEPS / INDICATORS
   ============================================================ */
.hp-steps {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.hp-step-indicator {
    flex: 1;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f2f5f9;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hp-step-indicator span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d0dbea;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-step-indicator.hp-step-active {
    background: #2187cc;
    color: #fff;
}

.hp-step-indicator.hp-step-active span {
    background: #fff;
    color: #2187cc;
}

/* ============================================================
   STEP ACTION BUTTONS
   ============================================================ */
.hp-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    gap: 10px;
}

.hp-step-actions-right {
    justify-content: flex-end;
}

.hp-step-btn {
    padding: 11px 18px;
    border-radius: 999px;
    background: #2187cc;
    color: #fff;
    border: 1px solid #2187cc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.hp-step-btn:hover {
    background: #1367a1;
}

.hp-prev-step {
    background: #fff !important;
    color: #2187cc !important;
    border-color: #2187cc !important;
}

/* ============================================================
   FINAL SUBMIT BUTTON
   ============================================================ */
.hp-submit-btn {
    width: 100%;
    background: #2187cc;
    padding: 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hp-submit-btn:hover {
    background: #1367a1;
}

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */
.hp-success-message {
    margin-top: 16px;
    display: none;
}

.hp-success-box {
    background: #e8f7ec;
    border: 1px solid #a6dfb7;
    padding: 14px 16px;
    color: #257a43;
    border-radius: 8px;
    font-size: 14px;
}

/* ============================================================
   SMALL HELPER TEXT
   ============================================================ */
.hp-note {
    font-size: 12px;
    color: #777;
}
.hp-3col.hp-fullwidth {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
/* MOBILE BUTTON FIX */
@media (max-width: 768px) {

    /* Step action buttons full width & aligned */
    .hp-step-actions {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }

    .hp-step-actions button {
        width: 100% !important;
        text-align: center !important;
    }

    .hp-step-btn,
    .hp-submit-btn {
        padding: 14px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
    }
}
/* FIX: Step Indicators breaking layout on mobile */
@media (max-width: 768px) {

    .hp-steps {
        display: flex;
        flex-wrap: wrap;        /* allow wrapping */
        justify-content: center; /* center items */
        gap: 10px;
    }

    .hp-step-indicator {
        flex: unset !important; /* remove forced width */
        width: auto !important;
        padding: 8px 14px !important;
    }
}
.hp-extra-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
}
.hp-extra-options label {
    display:flex;
    justify-content:space-between;
    font-weight:500;
}
.hp-extra-options input[type="checkbox"] {
    width:18px;
    height:18px;
}
@media(max-width:768px){
    .hp-extra-options { grid-template-columns:1fr; }
}
.hp-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
