/* =========================================================
   RESOURCEINN PLAN BUILDER (pricing page)
   Changes vs original: scoped transitions, hover only on
   hover-capable devices, focus-visible ring, font fallbacks,
   stray ";" removed. Visual design unchanged.
   ========================================================= */

/* ================= STEP BAR ================= */
.pb-stepbar-wrapper {
    width: 20%;
    margin: 0 auto 24px;
    background: #ffffff;
    height: 15px;
    border-radius: 50px;
    border: 1px solid #fff;
    padding: 2px;
    overflow: hidden;
}

.pb-step-indicator {
    font-size: 22px;
    font-weight: 500;
    color: #575760;
    width: 100%;
    margin-bottom: 8px;
    font-family: 'BagossCondensed-TRIAL-Medium', sans-serif;
    display: flex;
    justify-content: center;
}

.pb-stepbar-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #AD3AFF 0%, #C778FF 100%);
    transition: width 0.3s ease;
    border-radius: 50px;
}

/* ================= LAYOUT ================= */
.pb-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    padding: 0 20px;
}

/* ================= SECTIONS ================= */
.pb-section-title {
    font-size: 28px;
    padding-top: 20px;
    font-weight: 500;
    font-family: 'BagossCondensed-TRIAL-Medium', sans-serif;
    color: #311b49;
    margin-bottom: 15px;
}

/* ================= MODULES ================= */
.pb-modules {
    display: grid;
    gap: 16px;
}

.pb-module {
    background: #f3f3f3;
    border-radius: 16px;
    padding: 0;
    cursor: default;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #fff;
}

/* hover lift only on devices that can hover (avoids sticky hover on touch) */
@media (hover: hover) {
    .pb-module:hover { transform: translateY(-2px); }
}

/* Only header highlighted when selected */
.pb-module.selected { background: transparent; }
.pb-module.selected .pb-module-head {
    background: linear-gradient(180deg, #F7EBFF 0%, #E7C4FF 100%);
    border-radius: 16px;
}

/* ================= MODULE HEADER ================= */
.pb-module-head {
    display: flex;
    justify-content: space-between;
    border-radius: 15px;
    cursor: pointer;
    align-items: flex-start;
    padding: 16px;
    transition: background 0.25s ease;
}
.pb-module-head,
.pb-select {
    user-select: none;
}
.pb-add-on-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}
.pb-left { display: flex; gap: 12px; flex-direction: row; align-items: center; }
.pb-addon .pb-left { flex-direction: column; align-items: flex-start; }

.pb-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: #a644ff4d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pb-text h4 { margin: 0; font-size: 22px; color: #494949; font-family: 'BagossCondensed-TRIAL-Medium', sans-serif; font-weight: 500; }
.pb-text p { margin: 2px 0 0; font-size: 12px; line-height: 18px; color: #000; font-weight: 400; font-family: 'Inter', sans-serif; }

.pb-industries, .pb-industries-wrapper { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb-industries-title { font-size: 12px; font-weight: 600; color: #575760; letter-spacing: 0.04em; text-transform: uppercase; font-family: 'Inter', sans-serif; margin: 0; }

.pb-pill { font-size: 10px; font-family: 'Inter', sans-serif; padding: 4px 10px; font-weight: 500; border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; }
.pb-module.pb-addon .pb-text h4 { font-family: 'BagossCondensed-TRIAL-Medium', sans-serif; font-size: 22px; color: #494949; font-weight: 500; }

/* ================= RIGHT CONTROLS ================= */
.pb-right { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* ================= SELECT CIRCLE ================= */
.pb-select { display: flex; flex-direction: column; align-items: center; cursor: pointer; width: 100px; }
.pb-select:focus-visible { outline: 2px solid #a544ff; outline-offset: 3px; border-radius: 8px; }
.pb-circle { width: 20px; height: 20px; border-radius: 50%; background: #919191; display: flex; align-items: center; justify-content: center; position: relative; transition: all 0.2s ease; }
.pb-circle::before { content: ""; position: absolute; width: 6px; height: 6px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(225deg); color: #fff; font-size: 10px; opacity: 0.6; transition: opacity 0.2s ease; }
.pb-circle::after { content: "✓"; color: #fff; font-size: 10px; position: absolute; opacity: 0; transition: opacity 0.2s ease; }
.pb-select.selected .pb-circle { background: #a544ffd0; }
.pb-select.selected .pb-circle::after { opacity: 1; }
.pb-select.selected .pb-circle::before { opacity: 0; }
.pb-select-text { font-size: 12px; color: #6b7280; margin-top: 4px; font-weight: 600; }
.pb-select.selected .pb-select-text { font-size: 0; }
.pb-select.selected .pb-select-text::before { content: "Selected"; font-size: 12px; font-weight: 600; color: #a544ffd0; }

/* ================= SMOOTH MODULE BODY ================= */
.pb-body {
    background: #fff;
    border-radius: 0 0 15px 15px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 16px; /* horizontal only initially */
    transition-property: max-height, opacity, padding;
    transition-duration: 0.2s, 0.2s, 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease, ease;
}

/* OPEN STATE */
.pb-module.open .pb-body {
    max-height: 600px; /* safe max for content */
    opacity: 1;
    padding: 16px;
}

.pb-body ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pb-body li {
    position: relative; padding-left: 30px; font-size: 12px; font-weight: 500; font-family: 'Inter', sans-serif; display: flex; align-items: center;
}
.pb-body li::before {
    content: "✓";
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    color: #a544ffd0;
    background: #f3ddff;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
}

/* ================= SIDEBAR ================= */
.pb-summary-col { position: relative; }
.pb-summary {
    position: sticky;
    top: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    padding: 30px;
    margin-top: 70px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.pb-summary .pb-left { display: flex; gap: 15px; color: #c5c5c5; }
.pb-summary .pb-icon { font-size: 24px; width: 40px; height: 40px; border-radius: 12px; background: #ede9fe; display: flex; justify-content: center; align-items: center; }
.pb-summary .pb-text h4 { margin: 0; font-size: 24px; font-weight: 500; font-family: 'BagossCondensed-TRIAL-Medium', sans-serif; color: #311b49; }
.pb-summary .pb-divider { height: 1px; background-color: #b1b1b1; width: 100%; margin-top: 10px; }
.pb-summary-title { font-weight: 500; font-family: 'BagossCondensed-TRIAL-Medium', sans-serif; color: #311B49; font-size: 18px; line-height: 14px; margin-top: 21px; background: linear-gradient(120deg, #E8EBE9 0%, #e9e9e9 100%); padding: 10px; border-radius: 5px; display: flex; }
.pb-summary-title-add-on { font-family: 'BagossCondensed-TRIAL-Medium', sans-serif; font-size: 18px; font-weight: 500; line-height: 14px; color: #311B49; padding: 10px; }
.pb-addons-bg { background-color: #f3f3f3; padding: 10px; border-radius: 10px; }
.pb-summary ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 15px;
}
.pb-summary li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'BagossCondensed-TRIAL-Medium', sans-serif;
}
.pb-summary li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    color: #fff; background: #939393; border-radius: 50%;
    width: 15px; height: 15px; display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 8px;
}

/* ================= BUTTONS ================= */
.pb-next-btn, .pb-form .submit-button {
    width: 100%;
    font-family: 'Inter', sans-serif;
    padding: 14px 0;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(270deg, #7b5cf5, #9333ea);
    background-size: 400% 400%;
    color: #f3f4f6;
    text-align: center;
    transition: background-position 0.5s ease;
}

.pb-next-btn:hover, .pb-form button:hover {
    background-position: 100% 0;
}

#pb-back-btn {
    background: #e5e7eb; color: #4b5563; max-width: 15%;
    border: solid 2px #fff; box-shadow: 0px 3px 14.9px 0px rgba(55, 64, 65, 0.25);
    transition: background 0.3s ease, color 0.3s ease;
}
#pb-back-btn:hover {
    background: #d1d5db;
    color: #1f2937;
}

/* ================= FORM ================= */
/* Ensure Step 2 inputs have proper cursor and no flicker */
.pb-form-container input,
.pb-form-container textarea {
    cursor: text !important;
    pointer-events: auto;
    -webkit-appearance: none;
}
.pb-form-container select {
    cursor: pointer !important;
    pointer-events: auto;
    -webkit-appearance: none;
}
.pb-form-container { display: none; position: relative; grid-column: 1 / -1; z-index: 1; }

/* ================= FORM STYLES ================= */
.pb-form-centered {
    max-width: 720px;
    margin: 40px auto; padding: 30px;
    border: 2px solid #fff; background: #f3f3f366; border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.pb-form-centered input,
.pb-form-centered textarea {
    cursor: text !important;
}
.pb-form-centered select {
    cursor: pointer !important;
}
.pb-form-centered .form-consent label {
    cursor: pointer !important;
}
.pb-form { display: flex; flex-direction: column; }
.pb-form h4 {
    margin: 0 0 20px; font-size: 28px; font-weight: 500; text-align: center;
    font-family: 'BagossCondensed-TRIAL-Medium', sans-serif; color: #4b5563;
}
.name-row, .two-col-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pb-form input, .pb-form select, .pb-form textarea {
    width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid #d1d5db;
    font-size: 14px; line-height: 30px; font-family: 'Inter', sans-serif; background: #fff;
}
.pb-form input:focus, .pb-form select:focus, .pb-form textarea:focus { outline: none; border-color: #a544ffd0; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15); }

/* =========================================================
   STEP 2 – PLAN SUMMARY
   ========================================================= */
.pb-summary-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 24px;
    margin-top: 24px;
}

.pb-summary-header {
    text-align: center;
    margin-bottom: 22px;
}

.pb-summary-header h4 {
    font-size: 22px;
    font-weight: 500;
    font-family: 'BagossCondensed-TRIAL-Medium', sans-serif;
    color: #311b49;
    margin-bottom: 6px;
}

.pb-summary-header p {
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #575760;
    margin: 0;
}

.pb-summary-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}
.pb-summary-block h5 {
    font-size: 1.4rem;
    font-family: 'BagossCondensed-TRIAL-Medium', sans-serif;
    font-weight: 500;
    line-height: 3rem;
}

.pb-summary-block:last-child {
    margin-bottom: 0;
}

.pb-summary-block h4 {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #494949;
    margin-bottom: 12px;
}

.pb-summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* PILLS (DEFAULT = ESSENTIALS) */
.pb-summary-list li {
    position: relative;
    background: linear-gradient(180deg, #F7EBFF 0%, #E7C4FF 100%);
    color: #5b21b6;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 5px 12px 5px 30px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.pb-summary-list li::before {
    content: "✓";
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #a544ffd0;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ADD-ONS VARIANT */
.pb-addon-list li {
    background: #ecfeff;
    color: #155e75;
}

.pb-addon-list li::before {
    background: #22d3ee;
}

/* EMPTY STATE */
.pb-summary-list li:only-child {
    background: #f3f4f6;
    color: #6b7280;
}

.pb-summary-list li:only-child::before {
    background: #d1d5db;
    color: #374151;
}

/* ================= DROP DOWN ARROW ================= */
.custom-select {
    position: relative;
    width: 100%;
}
.custom-select .custom-arrow {
    position: absolute;
    pointer-events: none;
    right: 12px;
    top: 26px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #e7cdfe;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-select .custom-arrow::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1px solid #A644FF;
    border-bottom: 1px solid #A644FF;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .pb-summary-form { padding: 18px; }
    .pb-summary-header h4 { font-size: 20px; }
    .pb-summary-block { padding: 14px; }
    .pb-summary-list { gap: 8px; }
    .pb-summary-list li { font-size: 10px; padding: 6px 12px 6px 28px; }
}

@media (max-width: 480px) {
    .pb-summary-header h4 { font-size: 18px; }
    .pb-summary-header p { font-size: 13px; }
    .pb-summary-list li { justify-content: flex-start; }
}

/* ================= CONSENT CHECKBOX ================= */
.contact-form .form-consent { font-size: 14px; color: #374151; margin: 14px 0; display: flex; align-items: center; gap: 10px; }
.contact-form .form-consent input[type="checkbox"] {
    -webkit-appearance: none; width: auto;
    height: auto;
    min-height: 18px;
    min-width: 18px; padding: 0;
    border: 2px solid #c9c9c9; border-radius: 4px; cursor: pointer; background: #fff; position: relative; transition: all 0.2s ease-in-out;
}
.contact-form .form-consent input[type="checkbox"]::after {
    content: ''; position: absolute; top: 1px; left: 4px; width: 6px; height: 10px; border: solid #5c3e98; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity 0.2s ease-in-out;
}
.contact-form .form-consent input[type="checkbox"]:checked::after { opacity: 1; }
.contact-form .form-consent input[type="checkbox"]:checked { background: linear-gradient(135deg, #a544ffd0, #c4b5fd); border-color: #a544ffd0; }
.contact-form .form-consent label { display: inline-block; font-size: 14px; line-height: 18px; cursor: pointer; margin-bottom: 0; }
.contact-form .form-consent a { color: #a544ffd0; text-decoration: none; font-weight: 500; }

/* ================= FORM BUTTONS ================= */
.pb-form-buttons { display: flex; gap: 12px; margin-top: 10px; }
.pb-form-buttons button { flex: 1; }

/* ================= ICON IMAGE ================= */
.pb-icon img { width: 22px; height: 22px; object-fit: contain; display: block; }

/* ================= RESPONSIVE (LARGE LAPTOPS) ================= */
@media (max-width: 1400px), (max-width: 1366px) {
    .pb-form input, .pb-form select, .pb-form textarea {
        padding: 10px 12px;
        border-radius: 5px;
        font-size: 10px;
        line-height: 20px;
    }
    .custom-select .custom-arrow::after {
        width: 5px;
        height: 5px;
        border-right: 1px solid #A644FF;
        border-bottom: 1px solid #A644FF;
    }
    .custom-select .custom-arrow {
        position: absolute;
        right: 12px;
        top: 21px;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
    }
    #brxe-cxgljh { max-width: 100%; padding: 0 1.2rem; }
    .pb-summary-title, .pb-summary-title-add-on { font-size: 16px; margin-top: 15px; padding: 10px; }
    .pb-summary .pb-icon {
        font-size: 20px;
        width: auto !important;
        height: auto !important;
        min-width: 40px;
        min-height: 40px;
        padding: 10px;
        border-radius: 12px;
    }
    .pb-summary li { padding-left: 18px; margin-bottom: 5px; font-size: 10px; }
    .pb-summary li::before { width: 12px; height: 12px; font-size: 6px; }
    .pb-summary .pb-text h4 { font-size: 18px; }
    .pb-summary { padding: 18px; }
    .pb-text p { font-size: 10px; line-height: 16px; }
    .pb-text h4 { font-size: 16px; }
    .pb-circle { width: 16px; height: 16px; }
    .pb-select.selected .pb-select-text::before, .pb-select-text { font-size: 10px; }
    .pb-icon img { width: 18px; height: 18px; }
    .pb-icon {
        width: auto;
        height: auto;
        min-width: 40px;
        min-height: 40px;
        padding: 10px;
        border-radius: 5px;
    }
    .pb-body li { font-size: 9px; }
    .pb-body li::before { width: 14px; height: 14px; font-size: 10px; }
    .pb-module.pb-addon .pb-text h4 { font-size: 16px; }
    .pb-section-title { font-size: 22px; padding-top: 20px; }
    .pb-pill { font-size: 8px; padding: 2px 8px; }
    .pb-industries-title { font-size: 8px; }
}

.pb-module.selected .pb-icon {
    background: linear-gradient(135deg, #AD3AFF 0%, #C778FF 100%);
    box-shadow: 0 6px 16px rgba(165, 68, 255, 0.35);
}

/* ================= ERROR HIGHLIGHT ================= */
/* Highlight module when user tries to go next without selecting */
.pb-module.invalid {
    border: 2px solid #ff4d4f;
    box-shadow: 0 0 8px rgba(255, 77, 79, 0.5);
    transition: all 0.3s ease;
}

/* ================= RESPONSIVE OTHER BREAKPOINTS ================= */
@media (max-width: 1024px) { .pb-wrapper { grid-template-columns: 1fr; padding: 5px; } .pb-summary { position: relative; margin-top: 24px; } .pb-stepbar-wrapper { width: 60%; } }
@media (max-width: 768px) { .pb-stepbar-wrapper { width: 60%; } .pb-module-head { align-items: flex-start; gap: 10px; } .pb-body ul { grid-template-columns: 1fr; } .name-row, .two-col-row { grid-template-columns: 1fr; } .pb-form-buttons { flex-direction: row; } }
@media (max-width: 480px) { .pb-text h4 { font-size: 14px; line-height: 18px; } .pb-text p { font-size: 10px; line-height: 14px; } }

/* ================= SMALLER SCREENS ================= */
@media (max-width: 769px) {
    .contact-form .form-consent label { display: inline-block; font-size: 10px; line-height: 15px; cursor: pointer; margin-bottom: 0; }
    .pb-wrapper { gap: 0px; }
    .pb-select { width: 30px; }
    .pb-form-centered { margin: 10px auto; }
    .pb-step-indicator { font-size: 18px; }
    #brxe-cxgljh { max-width: 100%; padding: 0 1rem; }
    .pb-summary-title, .pb-summary-title-add-on { font-size: 12px; margin-top: 10px; padding: 8px; }
    .pb-summary .pb-icon {
        font-size: 18px;
        width: auto !important;
        height: auto !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 10px;
        border-radius: 12px;
    }
    .pb-summary li { padding-left: 18px; margin-bottom: 4px; font-size: 10px; }
    .pb-summary li::before { height: 12px; width: 12px; }
    .pb-module.pb-addon .pb-text h4 { font-size: 14px; }
    #pb-back-btn { max-width: 25%; }
    .pb-next-btn, .pb-form button { font-size: 14px; }
}

/* ================= HONEYPOT FIELD ================= */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}