/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra
Author: Healey Packaging
Author URI: https://healeypackaging.co.uk/
Template: astra
Version: 1.0.0
*/

/* Add your custom CSS below */
.single-product .product_meta {
display: none !important;
}
/* ============================================================
   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;
}
/* ---------------------------------------------------
   REMOVE BULLETS + CLEAN ALIGNMENT FOR TAB NAVIGATION
--------------------------------------------------- */
.hp-tabs-nav {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;

    display: flex;
    align-items: flex-end;
    gap: 25px;

    border-bottom: 2px solid #dfe6ef;
    padding-bottom: 0;
    margin-bottom: 25px;
}


/* ---------------------------------------------------
   TAB BUTTONS (INACTIVE STYLE)
--------------------------------------------------- */
.hp-tab-btn {
    cursor: pointer;
    padding: 10px 22px 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;

    color: #7a8aac;
    background: #f5f7fa;

    border-radius: 4px 4px 0 0;
    position: relative;

    transition: all 0.25s ease;
}


/* ---------------------------------------------------
   ACTIVE TAB STYLE (BLUE TOP BORDER + WHITE PANEL)
--------------------------------------------------- */
.hp-tab-btn.active {
    color: #5da2e3;
    background: #ffffff;
    border-bottom: 2px solid #ffffff !important;
}

.hp-tab-btn.active::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 3px;

    background: #5da2e3;
    border-radius: 3px 3px 0 0;
}


/* ---------------------------------------------------
   TAB CONTENT (SHOW/HIDE)
--------------------------------------------------- */
.hp-tab-pane {
    display: none;
    line-height: 1.7;
    animation: fadeIn .25s ease;
}

.hp-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ---------------------------------------------------
   HEADINGS INSIDE DESCRIPTION & FAQ CONTENT AREA
--------------------------------------------------- */
.hp-tab-pane h1,
.hp-tab-pane h2,
.hp-tab-pane h3,
.hp-tab-pane h4 {
    color: #5da2e3 !important;
}
/* ----------------------------------------------------
   POPPINS FONT GLOBAL
------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body, html,
p, span, li, ul, ol, a,
button, input, select, textarea,
.wp-block, .elementor *, .woocommerce,
.woocommerce *, table, th, td {
    font-family: "Poppins", sans-serif !important;
}

/* ----------------------------------------------------
   HEADING BASE STYLE
------------------------------------------------------ */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: "Poppins", sans-serif !important;
    font-weight: 700 !important;
    color: #212121 !important;
    margin: 0 0 12px;
}

/* Two-color generated spans */
.hp-dark {
    color: #212121 !important;
}
.hp-blue {
    color: #5da2e3 !important;
}
/* =====================================================
   GLOBAL ICON REPAIR – FULL RESTORE (FINAL VERSION)
   Fixes: Elementor Icons, Font Awesome, Flaticon,
   Dashicons, Woo Icons, Menu Icons, Header Icons
 ===================================================== */

/* DO NOT ALLOW POPPINS TO OVERRIDE ICON FONTS */
i, i:before, i:after,
[class^="fa"], [class*=" fa"],
[class^="fas"], [class*=" fas"],
[class^="far"], [class*=" far"],
[class^="fab"], [class*=" fab"],
[class^="fal"], [class*=" fal"],
[class^="dashicons"], [class*=" dashicons"],
[class^="eicon"], [class*=" eicon"],
[class^="flaticon"], [class*=" flaticon"],
[class^="ti-"], [class*=" ti-"] {
    font-family: unset !important;
    font-style: normal !important;
}

/* RESTORE ELEMENTOR ICON LIBRARY */
.eicon, .eicon:before {
    font-family: "eicons" !important;
}

/* RESTORE FONT AWESOME 5 */
.fa, .fas, .far, .fab, .fal {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* RESTORE FONT AWESOME BRANDS */
.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* RESTORE FLATICON (OLD ELEMENTOR) */
[class^="flaticon-"], [class*=" flaticon-"] {
    font-family: "Flaticon" !important;
}

/* RESTORE WORDPRESS DASHICONS */
.dashicons, .dashicons-before:before {
    font-family: "dashicons" !important;
}

/* RESTORE WOOCOMMERCE STAR RATING ICONS */
.woocommerce .star-rating:before,
.woocommerce .star-rating span:before {
    font-family: "star" !important;
}
