/* Public Booking Styles */

/* Mode Tabs */
.mode-tabs {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    gap: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.mode-tabs .mode-tab {
    flex: 1;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    color: #667085;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.mode-tabs .mode-tab .tab-content {
    padding: 8px 0;
}

.mode-tabs .mode-tab .tab-indicator {
    height: 1px;
    width: 100%;
    background: #d0d5dd;
    border-radius: 100px;
}

.mode-tabs .mode-tab:hover {
    color: #1ba0a4;
}

.mode-tabs .mode-tab.active {
    background: transparent;
    color: #1ba0a4;
    font-weight: 700;
}

.mode-tabs .mode-tab.active .tab-indicator {
    height: 2px;
    background: #1ba0a4;
}

/* Filter Buttons */
.filter-group {
    flex: 1;
}

.filter-group .filter-label {
    font-size: 16px;
    font-weight: 600;
    color: #101828;
    line-height: 24px;
    margin-bottom: 16px;
}

.filter-options {
    display: flex;
    gap: 16px;
}

.filter-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    background: white;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #1ba0a4;
}

.filter-btn.active-teal {
    border-color: #1ba0a4;
    background: #effafa;
}

.filter-btn.active-orange {
    border-color: #ff7c34;
    background: #fff0e8;
}

.filter-btn .filter-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.filter-btn .filter-icon.icon-teal {
    background: linear-gradient(170deg, #1ba0a4 7%, #148d91 107%);
}

.filter-btn .filter-icon.icon-red {
    background: linear-gradient(156deg, #d04242 8%, #8c3030 91%);
}

.filter-btn .filter-icon.icon-orange {
    background: linear-gradient(160deg, #ff7c34 13%, #c86630 130%);
}

.filter-btn .filter-icon.icon-green {
    background: linear-gradient(143deg, #4bb14e 5%, #2e7430 95%);
}

.filter-btn-label {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    line-height: 20px;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.billing-toggle button {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.billing-toggle button.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.billing-toggle .discount-badge {
    background: #10b981;
    color: #fff;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.currency-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.currency-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

/* Package Cards */
.package-card {
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.package-card:hover {
    border-color: var(--card-border-color, #d0d5dd);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.package-card.selected {
    border-color: var(--card-border-color, #d0d5dd);
    border-width: 2px;
}

.package-card.has-badge {
    border: 2px solid var(--card-border-color);
    border-radius: 8px;
}

.package-card .package-badge-bar {
    background: var(--card-border-color, #ff7c34);
    color: #fff;
    text-align: center;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    margin: -1px -1px 0 -1px;
    border-radius: 6px 6px 0 0;
}

.package-card .package-header {
    height: 100px;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px;
}

.package-card .package-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.package-card .package-header-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.package-card .package-header-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-card .package-header .package-name {
    font-weight: 700;
    font-size: 20px;
    margin: 0;
    line-height: 30px;
    position: relative;
    z-index: 2;
}

.package-card .package-header .package-desc {
    font-size: 14px;
    color: #101828;
    margin: 0;
    line-height: 20px;
    position: relative;
    z-index: 2;
}

.package-card .package-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-card .price {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.72px;
    line-height: 44px;
}

.package-card .price .period {
    font-size: 14px;
    font-weight: 400;
    color: #101828;
    line-height: 1.2;
    margin-top: 4px;
}

.package-card .package-divider {
    height: 1px;
    background: #d0d5dd;
    margin: 16px 0;
}

.package-card .features {
    flex: 1;
}

.package-card .features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-card .features li {
    padding: 4px 0;
    font-size: 14px;
    color: #101828;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 20px;
}

.package-card .features li::before {
    content: "";
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%234BB14E'/%3E%3Cpath fill='%23fff' d='M10 14.59l-2.29-2.3-1.42 1.42L10 17.41l8-8-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 1px;
}

.package-card.custom-plan {
    border-style: solid;
}

.package-card.custom-plan .package-header .package-name {
    color: #101828;
}

/* Summary Bar */
.summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 100;
}

.summary-bar .summary-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.summary-bar .summary-tag.tag-teal {
    background: #effafa;
    border-color: #8dcfd1;
    color: #1ba0a4;
}

.summary-bar .summary-tag.tag-blue {
    background: #e4ecff;
    border-color: #7796e3;
    color: #2154d6;
}

.summary-bar .summary-tag.tag-orange {
    background: #fff0e8;
    border-color: #ffbd99;
    color: #ff7c34;
}

.summary-bar .summary-tag.tag-red {
    background: #fef2f2;
    border-color: #f59696;
    color: #d04242;
}

.summary-bar .summary-tag.tag-premium {
    background: #fff0e8;
    border-color: #ffbd99;
}

.summary-bar .summary-tag.tag-premium .tag-text {
    background: linear-gradient(to right, #ff7c34 0%, #ead200 117.31%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-bar .summary-tag .tag-icon {
    width: 16px;
    height: 16px;
}

.summary-bar .summary-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
}

/* Promotion Styles */
.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.original-price {
    display: block;
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 2px;
}

.promo-price {
    color: #10b981;
    font-weight: 700;
}

.savings-info {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    margin-top: 4px;
}

.countdown-timer {
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    margin-top: 6px;
    padding: 4px 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    display: inline-block;
}

/* Set Own Fee Section */
.set-own-fee-section {
    border: 1px solid #fbbf24;
}

/* Responsive */
@media (max-width: 768px) {
    .mode-tabs {
        width: 100%;
    }

    .mode-tabs .mode-tab {
        padding: 12px 0 0;
        font-size: 14px;
    }

    .mode-tabs .mode-tab .tab-content i {
        font-size: 16px;
    }

    .d-flex.gap-4.mb-4 {
        flex-direction: column;
        gap: 24px !important;
    }

    .filter-options {
        gap: 12px;
    }

    .filter-btn {
        padding: 10px;
    }

    .filter-btn .filter-icon {
        width: 32px;
        height: 32px;
    }

    .filter-btn-label {
        font-size: 13px;
    }

    .billing-toggle {
        width: 100%;
        justify-content: center;
    }

    .billing-toggle button {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 > .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
        width: 100%;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 .currency-select {
        width: 100% !important;
    }

    .row.mb-4 .col-md-6 {
        margin-bottom: 1rem;
    }

    .row.mb-4 .col-md-6 .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .summary-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .summary-bar .summary-actions {
        width: 100%;
    }

    .summary-bar .summary-actions .btn {
        flex: 1;
        padding: 0.5rem 0.75rem !important;
    }

    .summary-bar .summary-actions .btn span {
        font-size: 0.875rem;
    }

    .summary-bar .summary-actions .btn small {
        font-size: 10px !important;
    }

    .summary-tags {
        flex-wrap: wrap;
        justify-content: center;
    }

    .summary-bar > .d-flex.align-items-center.gap-4 {
        flex-direction: column;
        gap: 0.75rem !important;
        width: 100%;
        text-align: center;
    }

    .summary-bar .summary-price {
        font-size: 1.25rem;
    }

    .package-card .package-header .package-name {
        font-size: 18px;
    }

    .package-card .price {
        font-size: 28px;
    }

    .original-price {
        font-size: 15px;
    }

    .promo-badge {
        font-size: 11px;
        padding: 2px 8px;
    }

    .savings-info {
        font-size: 12px;
    }

    .countdown-timer {
        font-size: 11px;
    }

    /* Set Own Fee Section Mobile */
    .set-own-fee-section > .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }

    .set-own-fee-section > .d-flex > .d-flex.align-items-center.gap-3:first-child {
        justify-content: center;
    }

    .set-own-fee-section > .d-flex > .d-flex.align-items-center.gap-3:last-child {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .set-own-fee-section input[type="number"] {
        width: 100% !important;
    }
}

/* Very small screens */
@media (max-width: 576px) {
    .text-center.mb-5 h1.display-6 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .mode-tabs .mode-tab {
        font-size: 12px;
    }

    .mode-tabs .mode-tab .tab-content {
        flex-direction: column;
        gap: 4px !important;
    }

    .filter-btn {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
    }

    .filter-btn .filter-icon {
        margin: 0 auto;
    }

    .filter-btn-label {
        font-size: 12px;
    }

    .billing-toggle button {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .billing-toggle .discount-badge {
        font-size: 0.625rem;
        padding: 0.1rem 0.375rem;
    }

    .package-card .price {
        font-size: 24px;
        line-height: 32px;
    }

    .package-card .package-header {
        height: 80px;
    }

    .package-card .package-header .package-name {
        font-size: 16px;
        line-height: 24px;
    }

    .package-card .package-header .package-desc {
        font-size: 12px;
    }

    .summary-bar .summary-actions {
        flex-direction: column;
    }

    .summary-bar .summary-actions .btn {
        width: 100%;
    }

    .summary-bar .summary-tag {
        font-size: 12px;
        padding: 2px 6px;
    }

    .summary-bar .summary-tag .tag-icon {
        width: 14px;
        height: 14px;
    }

    .set-own-fee-section .fw-semibold {
        font-size: 14px;
    }
}

/* Page padding for fixed summary bar */
.container-xxl {
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    .container-xxl {
        padding-bottom: 180px;
    }
}

@media (max-width: 576px) {
    .container-xxl {
        padding-bottom: 220px;
    }
}

/* ===========================================
   Success Page Styles
   =========================================== */

.success-page {
    min-height: 80vh;
    background: #f8fafc;
    overflow: hidden;
}

.success-illustration {
    position: absolute;
    bottom: 0;
    width: 280px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.success-illustration-left {
    left: 2%;
}

.success-illustration-right {
    right: 2%;
}

.success-icon-wrapper {
    display: inline-block;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #101828;
}

.success-subtitle {
    font-size: 1rem;
}

.success-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.badge-success-pill {
    background: #10b981;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
}

.info-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.info-card-icon-teal {
    background: #e0f7f7;
    color: #1ba0a4;
}

.info-card-icon-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.amount-paid-card {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 1.25rem;
}

.amount-paid-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
}

.amount-paid-check {
    width: 48px;
    height: 48px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.transaction-details {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

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

.badge-success-outline {
    background: #f0fdf4;
    color: #10b981;
    border: 1px solid #86efac;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.support-card {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 1.25rem;
}

.support-icon {
    width: 48px;
    height: 48px;
    background: #14b8a6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* Success Page Buttons */
.success-page .btn-success {
    background: #10b981;
    border-color: #10b981;
}

.success-page .btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.success-page .btn-outline-secondary {
    border-color: #d1d5db;
    color: #374151;
}

.success-page .btn-outline-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.success-page .btn-outline-primary {
    border-color: #14b8a6;
    color: #14b8a6;
}

.success-page .btn-outline-primary:hover {
    background: #14b8a6;
    border-color: #14b8a6;
    color: #fff;
}

/* Success Page Responsive */
@media (max-width: 1200px) {
    .success-illustration {
        width: 200px;
    }
}

@media (max-width: 992px) {
    .success-illustration {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .success-title {
        font-size: 1.5rem;
    }

    .amount-paid-value {
        font-size: 1.5rem;
    }

    .success-page .d-flex.gap-3 {
        flex-direction: column;
    }

    .success-page .d-flex.gap-3 .btn {
        width: 100%;
    }

    .support-card .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .support-card .support-icon {
        margin: 0 auto 1rem;
    }

    .support-card .btn {
        margin-top: 1rem;
        width: 100%;
    }
}

/* ===========================================
   Failed Page Styles
   =========================================== */

.success-page.is-failed {
    background: #fef2f2;
}

.success-page.is-failed .success-icon {
    background: #ef4444;
}

.success-page.is-failed .success-title {
    color: #991b1b;
}

.success-page.is-failed .badge-success-pill {
    background: #ef4444;
}

.success-page.is-failed .amount-paid-card {
    background: #fef2f2;
    border-color: #fecaca;
}

.success-page.is-failed .amount-paid-value {
    color: #ef4444;
}

.success-page.is-failed .amount-paid-check {
    background: #fee2e2;
    color: #ef4444;
}

.success-page.is-failed .support-card {
    background: #fef2f2;
    border-color: #fecaca;
}

.success-page.is-failed .support-icon {
    background: #ef4444;
}

.failed-page {
    min-height: 80vh;
    background: #fef2f2;
    overflow: hidden;
}

.failed-illustration {
    position: absolute;
    bottom: 0;
    width: 280px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.failed-illustration-left {
    left: 2%;
}

.failed-illustration-right {
    right: 2%;
}

.failed-icon-wrapper {
    display: inline-block;
}

.failed-icon {
    width: 64px;
    height: 64px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.failed-title {
    font-size: 2rem;
    font-weight: 700;
    color: #991b1b;
}

.failed-subtitle {
    font-size: 1rem;
}

.failed-card {
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1.25rem;
}

.badge-failed-pill {
    background: #ef4444;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.info-card-icon-red {
    background: #fee2e2;
    color: #ef4444;
}

.amount-failed-card {
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1.25rem;
}

.amount-failed-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ef4444;
}

.amount-failed-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}

.error-info-card {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 1.25rem;
}

.error-info-icon {
    width: 40px;
    height: 40px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.support-card-red {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.support-icon-red {
    background: #ef4444;
}

/* Failed Page Buttons */
.failed-page .btn-danger {
    background: #ef4444;
    border-color: #ef4444;
}

.failed-page .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.failed-page .btn-outline-secondary {
    border-color: #d1d5db;
    color: #374151;
}

.failed-page .btn-outline-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.failed-page .btn-outline-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.failed-page .btn-outline-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* Failed Page Responsive */
@media (max-width: 1200px) {
    .failed-illustration {
        width: 200px;
    }
}

@media (max-width: 992px) {
    .failed-illustration {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .failed-title {
        font-size: 1.5rem;
    }

    .amount-failed-value {
        font-size: 1.5rem;
    }

    .failed-page .d-flex.gap-3 {
        flex-direction: column;
    }

    .failed-page .d-flex.gap-3 .btn {
        width: 100%;
    }

    .support-card-red .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .support-card-red .support-icon {
        margin: 0 auto 1rem;
    }

    .support-card-red .btn {
        margin-top: 1rem;
        width: 100%;
    }
}
