@import url(https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap);

:root {
    --pex-primary-color: #5630bc;
    --pex-border-light: #e2d8f6;
    --pex-text-muted: #8e8e8e;
    --pex-border-gray: #eaeaea
}

html,
body {
    background-color: #fff
}

strong {
    font-weight: 600;
}

body {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 22px
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px !important;
    }
}

.pex-header {
    border-bottom: none;
    /* box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06); */
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #46269b29 0%, #46269b29 100%);
}

.pex-header-logo {
    max-height: 55px
}

.pex-phone-circle {
    width: 45px;
    height: 45px;
    border: 1px solid #49279f;
    color: var(--pex-primary-color);
    font-size: 1.1rem
}

.pex-help-text-top {
    font-size: .85rem;
    color: #000;
}

.pex-help-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pex-primary-color)
}

.pex-help-text-bottom {
    font-size: .8rem;
    color: #000;
}

.pex-icon-flip {
    transform: scaleX(-1)
}

.pex-btn-save {
    color: var(--pex-primary-color);
    border-color: var(--pex-primary-color);
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 600
}

.pex-btn-save:hover {
    background-color: var(--pex-primary-color);
    color: #fff
}

body {
    background-color: #f7f8fa
}

.pex-banner-wrapper {
    background: linear-gradient(135deg, var(--pex-primary-color) 0%, #46269b 100%);
    padding: 35px 0 70px 0;
    position: relative;
    overflow: hidden
}

.pex-paw-bg {
    position: absolute;
    color: rgba(255, 255, 255, .04);
    font-size: 8rem;
    transform: rotate(15deg)
}

.pex-paw-1 {
    top: 20%;
    left: 40%
}

.pex-paw-2 {
    top: 10%;
    right: 15%;
    font-size: 6rem;
    transform: rotate(-10deg)
}

.pex-banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px
}

.pex-banner-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, .9)
}

.pex-pets-container {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    /* transform: translateX(-50%);
    right: 0px; */
}

.pex-pet-dog {
    height: auto;
    z-index: 2;
    position: relative;
    max-width: 400px;
}

.pex-pet-cat {
    height: 200px;
    margin-left: -110px;
    margin-bottom: 10px;
    z-index: 1;
    position: relative
}

.pex-banner-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.pex-banner-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 65px;
}

.pex-stepper-container {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.pex-stepper-box {
    padding: 20px 30px 15px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(86, 48, 188, 0.08);
}

.pex-stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%
}

.pex-stepper-line {
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: #f3f4f6;
    z-index: 1;
    border-radius: 4px;
}

.pex-stepper-line-active {
    position: absolute;
    top: 25px;
    left: 50px;
    width: 50%;
    max-width: calc(100% - 100px);
    height: 4px;
    background: var(--pex-primary-color);
    z-index: 2;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.pex-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100px;
}

.pex-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    border: 2px solid #d8d5d5;
    transition: all 0.3s ease;
}

.pex-step.active .pex-step-icon {
    background: var(--pex-primary-color);
    color: #fff;
    box-shadow: 0 0 0 1px #5630bc;
    border-color: #fff;
}

.pex-step-text {
    font-size: .85rem;
    font-weight: 600;
    color: #9ba3af;
    text-align: center;
}

.pex-step.active .pex-step-text {
    color: #111827
}

/* =========================================
   Step 1 Modernization CSS 
   ========================================= */

/* Step Visibility */
.page-step {
    display: none;
}

.page-step.active {
    display: block;
}

/* Modern Card */
.pex-modern-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: none;
}

.title-header {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-header i {
    color: var(--pex-primary-color);
    font-size: 1.5rem;
}

/* Sidebar Widgets */
.pex-widget-summary {
    background-color: #f6f3fc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.pex-widget-tips {
    background-color: #effcf4;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.pex-widget-help {
    background-color: #f6f3fc;
    border-radius: 16px;
    padding: 20px;
}

.pex-widget-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.pex-widget-title.text-purple {
    color: var(--pex-primary-color);
}

.pex-widget-title.text-green {
    color: #16a34a;
}

/* Custom Radio Pills */
.radio-button-outline {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.radio-button-outline input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-button-outline span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 20px;
    height: 52px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    background-color: #fff;
    transition: all 0.2s ease;
}

.radio-button-outline input:checked~span {
    border-color: var(--pex-primary-color);
    background-color: #f6f3fc;
    color: var(--pex-primary-color);
}

.radio-button-outline span i {
    font-size: 1.1rem;
}

/* Form Inputs */
.form-control.border {
    border-color: #d1d5db !important;
}

.form-control.rounded {
    border-radius: 8px !important;
}

.form-control,
.custom-select {
    height: 52px;
    font-size: 1rem;
}

/* Action Buttons (Next/Prev/Add) */
.btn-modern-prev,
.btn-modern-next,
.add-another-pet-btn {
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
}

.btn-modern-prev {
    color: #4b5563;
    background-color: #f3f4f6;
}

.btn-modern-prev:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-modern-next {
    background-color: var(--pex-primary-color);
    color: #fff;
}

.btn-modern-next:hover {
    background-color: #5b21b6;
    color: #fff;
}

.add-another-pet-btn {
    border: 2px solid var(--pex-primary-color);
    color: var(--pex-primary-color);
    background: white;
}

.add-another-pet-btn:hover {
    background: var(--pex-primary-color);
    color: white;
}

/* Labels */
.purple-label {
    font-weight: 600;
    color: #6c757d !important;
    font-size: 14px;
    display: block;
    margin-bottom: 0.25rem;
}

/* Input Group Heights */
.custom-input-group {
    height: 52px;
}

.custom-input-group .form-control,
.custom-input-group .input-group-text {
    height: 52px;
    border-color: #d1d5db;
    border-radius: 8px;
}

.custom-input-group .input-group-prepend .input-group-text {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #fff;
}

.custom-input-group .input-group-prepend+.form-control {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.custom-input-group .form-control+.input-group-append .input-group-text {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: #f3f4f6;
}

.custom-input-group .input-group-append {
    margin-left: -1px;
}

.custom-input-group .form-control {
    border-color: #d1d5db;
    box-shadow: none;
    transition: all 0.3s ease;
}

.custom-input,
.custom-select {
    height: 52px !important;
    font-size: 1rem !important;
    border-color: #d1d5db !important;
    border-radius: 8px !important;
}

.custom-input:focus,
.custom-select:focus {
    border-color: var(--pex-primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(143, 43, 196, 0.25) !important;
}

/* Select2 custom styling */
.select2-container--default .select2-selection--single {
    height: 52px !important;
    border-radius: 8px !important;
    border: 1px solid #ced4da !important;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 52px !important;
    padding-left: 12px !important;
    color: #4b5563 !important;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 6px !important;
    border: 1px solid #ced4da !important;
    padding: 8px 12px !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--pex-primary-color) !important;
}

.btn-outline-pex {
    color: var(--pex-primary-color);
    border-color: #d1c8fc;
    background-color: transparent;
}

.btn-outline-pex:hover,
.btn-outline-pex:focus,
.btn-outline-pex:active {
    color: #fff !important;
    background-color: var(--pex-primary-color) !important;
    border-color: var(--pex-primary-color) !important;
}

/* =========================================
   Step Headers Icon
   ========================================= */

.pex-step-title-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background-color: #46269b1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pex-primary-color);
}

.pex-step-title-icon i {
    font-size: 1.2rem;
    color: var(--pex-primary-color);
}

/* =========================================
   Validation Error State Styling
   ========================================= */

.form-control-error .form-control,
.form-control-error .custom-select,
.form-control-error .select2-container--default .select2-selection--single,
.form-control-error .custom-input-group .input-group-text,
.form-control-error .radio-button-outline span {
    border-color: #ef4444 !important;
}

/* Background icon for text inputs inside .form-control-error */
.form-control-error input.form-control,
.form-control-error select.form-control,
.form-control-error select.custom-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 20px !important;
    padding-right: 45px !important;
}

/* Prevent double icons on radio buttons or specific custom elements if they somehow get the class */
.form-control-error .radio-button-outline input {
    background-image: none !important;
}

/* Validation Message */
.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 24px;
    align-items: center;
}

.invalid-feedback.d-block {
    display: flex !important;
}

.invalid-feedback::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.br-12 {
    border-radius: 12px;
}

/* Step 3 Modern Styles */
.br-12 {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

.pet-card-modern {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pet-card-number-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #8f2bc4;
    color: white;
    width: 32px;
    height: 32px;
    border-bottom-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.pet-card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f3f4f6;
    margin: 10px auto;
}

.sidebar-features-list li {
    padding: 5px 0;
}

.detail-preferences-box .custom-checkbox {
    margin-bottom: 0;
}

/* Custom Purple Outline Button */
.btn-outline-purple {
    color: #8f2bc4;
    border-color: #8f2bc4;
    background-color: transparent;
}

.btn-outline-purple:hover {
    color: #fff;
    background-color: #8f2bc4;
    border-color: #8f2bc4;
}

/* =========================================
   Cover Options Modernization CSS
   ========================================= */

.cover-plan-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cover-plan-card.popular-plan {
    border: 1px solid var(--pex-primary-color);
}

.cover-plan-card .popular-badge {
    position: absolute;
    top: -18px;
    right: 20px;
    background-color: #1a8755;
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
    z-index: 10;
}

.cover-plan-card .popular-badge i {
    font-size: 0.8rem;
}

.cover-plan-card .popular-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #1a8755 transparent transparent transparent;
    display: block;
    width: 0;
}

.cover-plan-card .plan-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background-color: #f9f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pex-primary-color);
    font-size: 20px;
}

.cover-plan-card .plan-header h4 {
    font-size: 18px;
}

.cover-plan-card .plan-divider {
    border-top: 1px dashed #e5e7eb;
    width: 100%;
}

.cover-plan-card .feature-item span {
    font-size: 14px;
    font-weight: 400 !important;
}

.cover-plan-card .feature-icon {
    display: inline-flex;
    align-items: center;
    height: 22px;
}

.cover-plan-card .feature-icon i,
.cover-plan-card .feature-icon svg {
    color: var(--pex-primary-color) !important;
    font-size: 18px;
}

.cover-plan-card .cover-limit-select {
    height: 52px !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.cover-plan-card .get-plan-quote-btn {
    background-color: #198754;
    border-color: #198754;
    height: 52px;
    color: #fff;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    padding: 12px 20px;
}

.cover-plan-card .get-plan-quote-btn:hover {
    background-color: #157347;
    border-color: #157347;
    color: #fff;
}

.cover-plan-card .get-plan-quote-btn i {
    position: relative;
}

/* Typography & Layout Fixes (Bootstrap 5) */
.cover-options-title {
    color: var(--pex-primary-color);
    font-size: 24px;
}

.cover-options-subtitle {
    font-size: 14px;
}

.cover-plan-card .plan-title {
    color: var(--pex-primary-color);
}

.cover-plan-card .feature-text {
    font-size: 0.95rem;
}

.cover-plan-card .cover-limit-label {
    font-size: 0.95rem;
}

.cover-plan-card .info-icon-muted {
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Active State Design */
.cover-plan-card.active {
    border: 1px solid var(--pex-primary-color);
    border-top: 3px solid var(--pex-primary-color);
    background: linear-gradient(180deg, #f5f1ff 0%, #ffffff 120px);
    box-shadow: 0 4px 25px rgba(86, 48, 188, 0.08);
}

/* =========================================
   Selected Cover Details & Highlights
   ========================================= */

/* Selected Cover Summary */
.selected-cover-summary {
    background-color: #fbf9ff;
    border: 1px solid #f3efff;
    border-radius: 12px;
    overflow: hidden;
}

.selected-cover-summary .summary-item {
    padding: 24px;
}

.selected-cover-summary .summary-item-right {
    border-left: 1px solid #f3efff;
}

.selected-cover-summary .summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0eaff;
    color: var(--pex-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.selected-cover-summary .summary-label {
    color: var(--pex-primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.selected-cover-summary .summary-value {
    font-size: 1.15rem;
}

/* Cover Highlights Grid */
.highlight-info-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.highlight-info-card:hover,
.highlight-info-card.active {
    border-color: #d1c8fc !important;
    box-shadow: 0 4px 12px rgb(86 48 188 / 9%);
}

.highlight-check-icon i {
    color: #16a34a;
    font-size: 1.35rem;
}

.highlight-text {
    font-size: 0.95rem;
}

.highlight-info-icon i {
    color: #777;
    font-size: 1.15rem;
    opacity: 0.8;
}

/* Highlight Detail Box */
.highlight-detail-box {
    background-color: #f5fbf7;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    border-top: 1px solid #edf7f0;
    border-right: 1px solid #edf7f0;
    border-bottom: 1px solid #edf7f0;
}

.highlight-detail-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background-color: #e5f6ea;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.highlight-detail-title {
    color: #15803d;
    font-size: 1.05rem;
}

.highlight-detail-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   Payment Options Modernization
   ========================================= */

.quote-header-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background-color: #f6f3fc;
    color: var(--pex-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.quote-header-title {
    color: var(--pex-primary-color);
    font-size: 1.5rem;
}

.payment-options-container {
    background-color: #fff;
    border: 1px solid var(--pex-primary-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(86, 48, 188, 0.04);
}

.plan-icon-box-small {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background-color: #f6f3fc;
    color: var(--pex-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.plan-name-title {
    color: var(--pex-primary-color);
    font-size: 1.25rem;
}

.cover-limit-badge {
    background-color: #f6f3fc;
    color: var(--pex-primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.payment-card-wrapper {
    cursor: pointer;
    margin: 0;
    display: block;
}

.payment-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.payment-card-wrapper input:checked+.payment-card {
    border-color: var(--pex-primary-color);
    box-shadow: 0 4px 15px rgba(86, 48, 188, 0.08);
}

.payment-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background-color: #f6f3fc;
    color: var(--pex-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.payment-card-title {
    color: var(--pex-primary-color);
    font-size: 1.15rem;
}

.payment-card-desc {
    font-size: 0.85rem;
    line-height: 1.4;
}

.payment-price-box {
    background-color: #fbf9ff;
    border-radius: 8px;
    padding: 16px;
}

.payment-price-label {
    color: var(--pex-primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-price-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-amount {
    color: var(--pex-primary-color);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-select-btn {
    border: 1px solid var(--pex-primary-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: #4b5563;
    transition: all 0.2s ease;
}

.payment-card-wrapper input:checked+.payment-card .payment-select-btn {
    background-color: #fbf9ff;
}

.custom-radio-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-card-wrapper input:checked+.payment-card .custom-radio-circle {
    border-color: var(--pex-primary-color);
}

.payment-card-wrapper input:checked+.payment-card .custom-radio-circle::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--pex-primary-color);
    border-radius: 50%;
}

.select-btn-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.payment-select-btn i {
    color: var(--pex-primary-color);
    opacity: 0.7;
}

.payment-card-wrapper input:checked+.payment-card .payment-select-btn i {
    opacity: 1;
}

/* Pet Cards Design - Step 3 */
.pet-card-modern {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.pet-card-ribbon {
    position: absolute;
    top: -1px;
    left: 20px;
    background-color: #6b21a8;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 12px 18px 12px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    z-index: 2;
}

.pet-card-delete-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pet-card-delete-btn:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background-color: #fef2f2;
}

/* Communication Preferences Switch Cards */
.custom-switch-card {
    background-color: #fbfaff;
    border: 1.5px solid #eae5f5;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.custom-switch-card:hover {
    border-color: #d1c8fc;
    box-shadow: 0 4px 12px rgba(86, 48, 188, 0.05);
}

.custom-switch-card .preferences-check-label {
    cursor: pointer;
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.4;
}

.custom-switch-card .preferences-check-label strong {
    color: #1f2937;
    font-weight: 600;
}

.custom-switch-input:checked,
.custom-checkbox-input:checked {
    background-color: var(--pex-primary-color);
    border-color: var(--pex-primary-color);
}

.custom-switch-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(107, 33, 168, 0.25);
    border-color: var(--pex-primary-color);
}

/* Step Action Wrapper */
.step-action-wrapper {
    /* padding: 15px 0px; */
    /* border-radius: 16px; */
    box-shadow: 0 0 0;
    background: transparent;
}

/* Sidebar Custom Styling */
.bg-danger-light {
    background-color: #fef2f2 !important;
}

.bg-warning-light {
    background-color: #fffbeb !important;
}

.bg-success-light {
    background-color: #f0fdf4 !important;
}

.bg-purple-light {
    background-color: #fbfaff !important;
}

.text-purple {
    color: #6b21a8 !important;
}

.sidebar-doc-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.sidebar-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    border: 1px solid #eae5f5;
}

.sidebar-doc-link {
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-doc-link:hover {
    background-color: #f9f9fb;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.sidebar-switch-btn {
    transition: all 0.2s ease;
}

.sidebar-switch-btn:hover {
    background-color: #fbf9ff !important;
}

/* Visibility Control for Switch Button */
.payment_type_selector {
    display: none !important;
}

#page-step-3 .payment_type_selector {
    display: block !important;
}

/* =========================================
   Step 5 Success Page Modernization
   ========================================= */

.success-card-modern {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(86, 48, 188, 0.06);
    border: none;
    overflow: hidden;
}

.success-badge-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background-color: #e5f6ea;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.success-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pex-primary-color);
}

.success-message {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
}

/* Document Links */
.docs-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.document-link-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: #fbf9ff;
    border: 1px solid #eae5f5;
    border-radius: 8px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.2s ease;
}

.document-link-item:hover {
    background-color: #fff;
    border-color: #d1c8fc;
    box-shadow: 0 4px 12px rgba(86, 48, 188, 0.05);
    color: var(--pex-primary-color);
}

.document-link-item .doc-icon {
    font-size: 1.4rem;
    margin-right: 16px;
}

.document-link-item .doc-title {
    font-weight: 600;
    font-size: 0.95rem;
    flex-grow: 1;
}

.document-link-item .doc-content {
    flex-grow: 1;
}

.document-link-item .doc-meta {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 2px;
}

.document-link-item .doc-arrow {
    color: var(--pex-primary-color);
    font-size: 1.1rem;
}

/* Right side status widget */
.success-right-col {
    background-color: #f4fcf7 !important;
}

.protection-status-widget {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.08);
    max-width: 320px;
}

.shield-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.protection-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.meta-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.policy-ref-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fbf9ff;
    border: 1px dashed #d1c8fc;
    border-radius: 6px;
    color: var(--pex-primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.meta-row {
    border-bottom: 1px dashed #e5e7eb;
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label-sm {
    font-size: 0.9rem;
    color: #4b5563;
}

.meta-value-sm {
    font-size: 0.9rem;
    color: #111827;
}

/* Buttons */
.btn-primary-purple {
    background-color: var(--pex-primary-color);
    color: #fff;
    border: 1px solid var(--pex-primary-color);
    border-radius: 30px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-primary-purple:hover {
    background-color: #46269b;
    border-color: #46269b;
    color: #fff;
}

.btn-outline-purple {
    border-radius: 30px;
}

/* =========================================
   Step 5 Success Page Modernization V2 (Flip Animation)
   ========================================= */

/* Flip Container */
.icon-flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    /* cubic-bezier gives it a nice springy/bouncy flip */
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    animation: flipLoop 6s infinite;
}

/* Front and Back Faces */
.icon-flip-front,
.icon-flip-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    border: 0.5px solid #10b981;
}

/* Back face is rotated 180deg */
.icon-flip-back {
    transform: rotateY(180deg);
}

/* Keyframes for flipping back and forth */
@keyframes flipLoop {
    0%,
    40% {
        transform: rotateY(0deg);
    }

    50%,
    90% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.success-icon-container {
    perspective: 1000px;
    width: 100px;
    height: 100px;
}

/* Pulse Glow */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Colors and custom elements for v2 */
.text-purple-dark {
    color: #3f208c;
}
.document-link-item-v2:hover {
    background-color: #fbf9ff;
    border-color: #d1c8fc !important;
}
.document-link-item-v2:hover .doc-icon-box {
    background-color: #fff !important;
    box-shadow: 0 4px 12px rgba(86, 48, 188, 0.05);
}

.manage-policy-card {
    transition: all 0.2s ease;
}

.manage-policy-card:hover {
    box-shadow: 0 4px 15px rgba(86, 48, 188, 0.05);
}

.shield-blob-container svg {
    animation: pulseGlowBlob 4s infinite alternate;
}

@keyframes pulseGlowBlob {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}