/* ============================================
   HROF Headless Checkout - checkout-page.css
   Pixel-perfect match with Funnelish core.min.css
   + inline styles from checkout.html
   ============================================ */

/* Override checkout-custom.css grid if it leaks through */
.hrof-checkout-body .hrof-checkout-wrapper {
    display: block !important;
    grid-template-columns: none !important;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body.hrof-checkout-body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #252A32;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    text-decoration: inherit;
}

/* Main wrapper - matches .section_wrapper { width:75% } + .section_row { max-width:850px } */
.hrof-checkout-wrapper {
    width: 75%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0;
}

/* ---- HEADER / LOGO ---- */
/* matches el-32710 border-bottom:3px solid #FFFFFF + el-48271 margin:5px 0px 10px 0px, align-items:center */
.hrof-checkout-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0 10px;
    border-bottom: 3px solid #FFFFFF;
}

.hrof-checkout-header img {
    width: 139px;
    height: 40px;
    object-fit: scale-down;
    box-shadow: none;
}

/* Form must stretch to fill wrapper */
#hrof-checkout-form {
    width: 100%;
}

/* ---- MAIN FORM SECTION ---- */
/* matches el-71003 border-radius:5px + el-78971 margin:0px 0px 30px 0px, background-color:#FFFFFF */
.hrof-checkout-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 5px;
    margin-bottom: 30px;
    color: #303030;
    font-size: 16px;
    text-align: initial;
    font-weight: 400;
}

/* matches .row-column { width:50%; padding:0; display:inline-block; vertical-align:top } from core.min.css
   Inside flex parent, we use flex-basis instead of inline-block */
.hrof-checkout-col {
    width: 50%;
    min-width: 0;
    padding: 0;
}

/* ---- STEP HEADINGS ---- */
/* matches el-100000/144749/92544/66841: font-family:Inter, font-size:25px, font-weight:400,
   text-align:center on wrapper, but inner <p style="text-align:left"> + <strong> overrides.
   Effective result: left-aligned, bold text.
   We use font-weight:700 + text-align:left directly since our HTML has no <p>/<strong> wrapper */
.hrof-step-heading {
    font-family: 'Inter', sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    margin: 20px 10px 10px;
    padding: 10px;
    border-bottom: 1px solid #000000;
    box-shadow: none;
    text-shadow: transparent 0px 0px 0px;
}

.hrof-step-heading:first-child,
.hrof-step-heading.hrof-step-first {
    margin-top: 10px;
}

/* matches inline: color: rgb(208, 2, 27) */
.hrof-step-heading .step-number {
    color: #D0021B;
}

/* ---- PRODUCT SELECTOR ---- */
/* matches el-40449: font-family:Inter, font-size:14px, font-weight:bold, margin:15px 0 0 0, padding:10px */
.hrof-product-list {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #252A32;
    margin: 15px 0 0;
    padding: 10px;
    box-shadow: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* matches core.min.css .pl-header: display:flex, align-items:center, justify-content:space-between,
   margin-bottom:8px, border-bottom:1px solid #eef1ff, padding:0 10px 5px */
.hrof-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid #eef1ff;
    padding: 0 10px 5px;
    color: #2F2F2F;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: bold;
}

/* matches core.min.css .pl-item: border-radius:3px, border:1px solid RGB(232,232,234),
   margin-bottom:5px, position:relative, overflow:hidden, background:inherit */
.hrof-product-item {
    width: 100%;
    display: flex;
    flex: 1;
    align-items: center;
    border-radius: 3px;
    border: 1px solid rgb(232, 232, 234);
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    background: inherit;
    cursor: pointer;
    flex-direction: row;
    padding: 10px;
    gap: 8px;
    transition: background 0.15s ease-in-out;
}

/* matches core.min.css .pl-inner:hover { background:rgba(206,206,206,.34) } */
.hrof-product-item:hover {
    background: rgba(206, 206, 206, 0.34);
}

/* selected state - matching Funnelish selected item behavior */
.hrof-product-item.active {
    border-color: #D0021B;
    background-color: #fff5f5;
}

/* matches core.min.css .pl-item.highlight: background:#ff0, box-shadow, border:none,
   width:calc(100% + 12px), left:-6px, margin-top:6px, margin-bottom:10px */
.hrof-product-item.super-highlight {
    background: #ff0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.11);
    border: none;
    width: calc(100% + 12px);
    position: relative;
    left: -6px;
    margin-top: 6px;
    margin-bottom: 10px;
    padding: 15px 10px;
    min-height: 60px;
}

.hrof-product-item.super-highlight.active {
    background: #fff8b0;
}

/* matches core.min.css .pl-radio: width:20px, height:20px, min-width:20px */
.hrof-product-item .product-radio {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* matches core.min.css .pl-name: text-align:start, flex:1, align-items:center, gap:5px */
.hrof-product-item .product-info {
    text-align: start;
    display: flex;
    flex-direction: row;
    width: 100%;
    flex: 1;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.hrof-product-item .product-name {
    font-size: 14px;
    font-weight: bold;
    color: #252A32;
    display: block;
}

/* matches core.min.css .pl-price: flex:0, text-align:end, white-space:break-spaces,
   min-width:fit-content, width:fit-content, max-width:50% */
.hrof-product-item .product-price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: end;
    white-space: nowrap;
    min-width: fit-content;
    width: fit-content;
    max-width: 50%;
    font-weight: bold;
    line-height: 1.3;
}

.hrof-product-item .product-price .original-price {
    color: #e60000;
    font-size: 12px;
    font-weight: normal;
}

/* Product tag / badge - matches core.min.css .pl-item .top-tag:
   font-size:12px, padding:1px 10px, color:#fff, font-weight:600,
   position:absolute, left:0, top:-26px (but we use top:0 since no overflow offset) */
.hrof-product-item .product-tag {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    padding: 1px 10px;
    color: #fff;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    background-color: #FF0000;
}

.hrof-product-item .product-tag.tag-gold {
    background-color: #FDCC5E;
    color: #000;
}

/* Items with top-tag need extra top padding - matches .pl-item.top_tag .pl-inner { padding:30px 10px 20px 10px } */
.hrof-product-item.has-tag {
    padding: 30px 10px 20px 10px;
}

/* ---- FORM INPUTS ---- */
/* matches .form-element { width:100%, padding:5px, position:relative } */
.hrof-form-group {
    margin: 10px 10px;
    position: relative;
}

.hrof-form-group:first-of-type {
    margin-top: 30px;
}

/* matches core.min.css .form-element input:
   background:#fff, border:1px solid #c5c7d2, border-radius:6px, width:100%, display:block,
   padding:11px 15px, letter-spacing:.02em, color:#252a32, min-height:22px, font-size:14px
   + inline override: font-size:16px, font-family:Inter, color:#252A32 */
.hrof-form-group .fe-input,
.hrof-form-group input[type="text"],
.hrof-form-group input[type="email"],
.hrof-form-group input[type="tel"] {
    width: 100%;
    display: block;
    padding: 11px 15px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #252A32;
    letter-spacing: 0.02em;
    background: #fff;
    border: 1px solid #c5c7d2;
    border-radius: 6px;
    outline: none;
    min-height: 22px;
    height: auto;
    transition: box-shadow 0.2s ease-in, border-color 0.2s ease-in;
}

/* matches core.min.css input:focus { border:1px solid #006eff; box-shadow:0 0 0 2px rgba(0,110,255,.71) } */
.hrof-form-group .fe-input:focus,
.hrof-form-group input:focus {
    border: 1px solid #006eff;
    box-shadow: 0 0 0 2px rgba(0, 110, 255, 0.71);
}

/* matches core.min.css .form-element label.invalid, input.invalid { border:2px solid red !important } */
.hrof-form-group .fe-input.error,
.hrof-form-group input.error {
    border: 2px solid red !important;
}

.hrof-form-group .error-message {
    color: #fb595b;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 150%;
    margin-top: 4px;
    display: none;
}

.hrof-form-group .error-message.visible {
    display: block;
}

/* Double input row - matches core.min.css .fe-double: display:flex, align-items:flex-end, width:100%, gap:30px */
.hrof-form-double {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin: 10px 10px;
}

.hrof-form-double .hrof-form-group {
    width: 50%;
    flex: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* ---- PHONE HINT ---- */
/* matches el-15301: font-size:25px on wrapper (but core.min.css .paragraph * inherits font-size,
   and the inline <span><strong> doesn't override size, so effective size follows container).
   However, the original paragraph element is 25px which makes the bold text large.
   line-height:1, margin:0 10px 10px, padding:10px. Mobile: 13px, Roboto, #020817 */
.hrof-phone-hint {
    font-size: 25px;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    margin: 0 10px 10px;
    padding: 10px;
    line-height: 1;
    border: 0;
    box-shadow: none;
    text-shadow: transparent 0px 0px 0px;
}

/* Secure icon - matches el-45600: margin:50px 0 0, align-items:flex-end, img width:200px */
.hrof-secure-icon {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 50px;
}

.hrof-secure-icon img {
    width: 200px;
    height: auto;
    object-fit: scale-down;
    box-shadow: none;
}

/* ---- PAYMENT METHOD ---- */
/* matches el-83125 inline: margin:20px 10px 0 10px, display:flex, flex-direction:column */
.hrof-payment-section {
    margin: 20px 10px 0;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

/* matches el-83125 inline .payment-option: display:flex, align-items:center, padding:15px,
   margin:10px 0, border:2px solid #27B16E, border-radius:5px, background-color:#f9f9f9 */
.hrof-payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #27B16E;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* matches el-83125 inline input[type="radio"]: margin-right:10px, width:20px, height:20px */
.hrof-payment-option input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* matches el-83125 inline label: font-family:Inter, font-size:16px, font-weight:bold, color:#252A32 */
.hrof-payment-option label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #252A32;
    cursor: pointer;
    flex: 1;
}

/* matches el-83125 inline .payment-info: margin-top:10px, padding:10px, font-size:14px, color:#666, line-height:1.5 */
.hrof-payment-info {
    margin-top: 10px;
    padding: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ---- SUBMIT BUTTON ---- */
/* matches core.min.css .btn base: cursor:pointer, border:none, outline:none, line-height:1.2,
   letter-spacing:.02em, box-shadow:RGB(37 42 50/32%) 0 1px 4px 1px
   + inline overrides: color:#F6F9FE, font-family:Inter, border-radius:3px,
   margin:20px, padding:20px 10px, background-color:#E53935
   + .btn-headline inline: font-size:27px, font-weight:bold */
.hrof-submit-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 20px 20px;
    padding: 20px 10px;
    background-color: #E53935;
    color: #F6F9FE;
    font-family: 'Inter', sans-serif;
    font-size: 27px;
    font-weight: bold;
    text-align: center;
    border: none;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
    line-height: 1.2;
    letter-spacing: 0.02em;
    box-shadow: rgba(37, 42, 50, 0.32) 0 1px 4px 1px;
    transition: 0.2s all ease-in-out;
    position: relative;
    word-break: break-word;
}

.hrof-submit-btn:hover {
    opacity: 0.9;
}

.hrof-submit-btn:disabled {
    pointer-events: none;
    opacity: 0.7;
}

.hrof-submit-btn .btn-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hrof-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes hrof-spin {
    to { transform: rotate(360deg); }
}

/* ---- GUARANTEE SECTION ---- */
/* matches el-459938: container flex-direction:row, align-items:start
   el-492785: inner container 33%/66% split */
.hrof-guarantee {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 10px 0 0;
    padding: 0;
    font-size: 18px;
    text-align: center;
}

/* Guarantee image container = 33% of parent, matches el-492785 > .container-box:nth-child(1) */
.hrof-guarantee-img {
    width: 33%;
    min-width: 33%;
    max-width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* matches el-440246: width:131px, height:148px, object-fit:scale-down, margin:1px 0 0 */
.hrof-guarantee-img img {
    width: 131px;
    height: 148px;
    object-fit: scale-down;
    box-shadow: none;
    margin: 1px 0 0;
}

/* Guarantee text container = 66% of parent, matches el-492785 > .container-box:nth-child(2) */
/* matches el-278188: font-size:18px, text-align:center, line-height:1, margin:0, padding:10px */
.hrof-guarantee-text {
    width: 66%;
    min-width: 66%;
    max-width: 66%;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 10px;
}

.hrof-guarantee-text strong {
    display: block;
    margin: 0 0 8px;
}

.hrof-guarantee-text p {
    margin: 0;
    padding: 0;
}

/* ---- GLOBAL ERROR ---- */
.hrof-global-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    margin: 10px 10px 0;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.hrof-global-error.visible {
    display: block;
}

/* ---- REVIEWS SECTION ---- */
/* matches section_wrapper_77429: width:75%, max-width:850px */
.hrof-reviews-section {
    width: 75%;
    max-width: 850px;
    margin: 30px auto;
}

/* matches el-757105: width:100%, height:auto, object-fit:fill, align-items:center */
.hrof-reviews-banner {
    width: 100%;
    height: auto;
    object-fit: fill;
    display: block;
}

/* matches el-952255: color:#FFFFFF, font-family:Inter, font-size:18px, text-align:center,
   font-weight:400, line-height:1, padding:5px, background-color:#0F9F0B, margin:10px 0 0 */
.hrof-reviews-heading {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #FFFFFF;
    background-color: #0F9F0B;
    margin: 10px 0 0;
    padding: 5px;
    line-height: 1;
    box-shadow: none;
    text-shadow: transparent 0px 0px 0px;
}

/* matches el-252999/996936/538111: margin:15px, align-items:center */
.hrof-review-card {
    text-align: center;
    margin: 15px;
}

/* matches img styles: width:300px, border-radius:20px, box-shadow:#9B9B9B 5px 0px 5px 5px, object-fit:fill */
.hrof-review-card img.review-photo {
    width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 5px 0px 5px 5px #9B9B9B;
    object-fit: fill;
    display: block;
    margin: 0 auto;
}

/* matches paragraph el-408635/590083/387751: font-size:18px, line-height:1, margin:10px 0 0, padding:10px */
.hrof-review-card .review-author {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin: 10px 0 0;
    padding: 0;
    line-height: 1;
}

.hrof-review-card .review-verified {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hrof-review-card .review-text {
    font-size: 18px;
    line-height: 1;
    margin: 0;
    padding: 10px;
    word-break: break-word;
    white-space: break-spaces;
}

/* Footer logo - matches el-3466: width:100px, align-items:center */
.hrof-checkout-footer {
    text-align: center;
    margin: 15px 0 30px;
}

.hrof-checkout-footer img {
    width: 100px;
    height: auto;
    box-shadow: none;
}

/* ---- RESPONSIVE ---- */
/* matches inline media queries: (600px-1024px) width:100%, max-width:1170px
   and (0-600px) width:100%, font-size:22px for headings */
@media only screen and (max-width: 1024px) {
    .hrof-checkout-wrapper,
    .hrof-reviews-section {
        width: 100%;
    }

    .hrof-step-heading {
        font-size: 22px;
    }
}

@media only screen and (max-width: 600px) {
    .hrof-checkout-wrapper,
    .hrof-reviews-section {
        width: 100%;
    }

    .hrof-checkout-main {
        flex-direction: column;
    }

    .hrof-checkout-col {
        width: 100%;
    }

    .hrof-step-heading {
        font-size: 22px;
    }

    /* matches el-45600 mobile: display:none */
    .hrof-secure-icon {
        display: none;
    }

    /* matches el-15301 mobile: font-size:13px, font-family:Roboto, color:#020817 */
    .hrof-phone-hint {
        font-size: 13px;
        font-family: 'Roboto', sans-serif;
        color: #020817;
    }

    .hrof-submit-btn {
        font-size: 22px;
    }

    .hrof-guarantee {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hrof-guarantee-img,
    .hrof-guarantee-text {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    /* matches el-757105 mobile: align-items:flex-start */
    .hrof-reviews-banner {
        object-fit: fill;
    }

    .hrof-review-card img.review-photo {
        width: 100%;
        max-width: 300px;
    }

    /* matches el-952255 mobile: font-size:26px */
    .hrof-reviews-heading {
        font-size: 26px;
    }
}
