/**
 * SSR Pricing Table Styles - Matching Vue.js Styles Exactly
 * These styles mirror the compiled styles from templates/master/src/assets/scss/_plan.scss
 * to ensure SSR content looks identical to Vue.js rendered content
 */

/* Font Family - Onest */
@font-face {
    font-family: 'Onest';
    src: url('../../templates/master/src/assets/fonts/onest/static/onest-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('../../templates/master/src/assets/fonts/onest/static/onest-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('../../templates/master/src/assets/fonts/onest/static/onest-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('../../templates/master/src/assets/fonts/onest/static/onest-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Container */
#airporttaxis-wizard-master-container {
    font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Title & Subtitle - Matching Vue.js .ps-title and .ps-subtitle */
.ps-title {
    text-align: center;
    font-weight: 700;
    font-size: 32px !important;
    line-height: 40px !important;
    color: #273044;
    margin-bottom: 16px !important;
    margin-top: 32px !important;
}

@media (max-width: 768px) {
    .ps-title {
        font-size: 26px !important;
    }
}

.ps-subtitle {
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #8c939f;
    margin-bottom: 56px;
}

@media (max-width: 768px) {
    .ps-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

/* Buttons Container */
.ps-btns-container {
    margin: 0 auto 56px;
    width: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .ps-btns-container {
        flex-direction: column;
        margin-bottom: 24px;
    }
}

/* Primary Button */
.ps-btn {
    background-color: #3674FF;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0px 8px 16px 0px #3674ff4d !important;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #fff !important;
    display: block;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-btn:hover {
    background-color: #4a82ff;
}

/* Secondary Button */
.ps-secondary-btn {
    background-color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid #d4d7dd;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #273044;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-secondary-btn:hover {
    background-color: #f8f9fa;
}

/* Features Banner */
.ps-features-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 56px;
    list-style: none;
    padding: 0;
}

@media (max-width: 768px) {
    .ps-features-banner {
        justify-content: start;
        gap: 20px;
    }
}

.ps-feature {
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #273044;
}

.ps-feature span {
    font-weight: 700;
    color: #ed5f32;
}

/* Main Container */
.ps-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Cards Container */
.ps-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 32px;
}

.ps-cards.plan-count-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .ps-cards.plan-count-4 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

/* Pricing Card */
.ps-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 62px 28px 32px;
    border: 1px solid #e0e8ef;
    border-radius: 32px;
    gap: 24px;
    cursor: pointer;
    height: 100%;
}

.ps-card:hover {
    border-color: #3674FF;
}

@media (max-width: 768px) {
    .ps-card {
        padding: 32px 28px 32px;
    }
}

.ps-card .recommended-badge {
    display: none;
}

.ps-card.recommended {
    background-color: #f3f9ff;
    padding-top: 64px;
}

.ps-card.recommended .recommended-badge {
    display: block;
    position: absolute;
    top: 12px;
    right: 50%;
    transform: translateX(50%);
    padding: 8px 16px;
    background-color: #ed5f32;
    border-radius: 24px;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #fff;
}

.coming-soon-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 12px;
    background-color: #273044;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    color: #fff;
    vertical-align: middle;
}

/* Card Title */
.ps-card-title {
    font-weight: 400 !important;
    font-size: 32px !important;
    line-height: 40px !important;
    color: #273044 !important;
    margin: 0 !important;
}

/* Card Description */
.ps-card-desc {
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #8c939f;
    flex-grow: 1;
}

/* Card Price */
.ps-card-price {
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: #273044;
}

.ps-card-price span {
    font-size: 24px;
}

.ps-card-price .sale {
    text-decoration: line-through;
    font-size: 24px;
    color: #8c939f;
    margin-left: 8px;
    font-weight: 400;
}

/* Card Features */
.ps-card-features {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #273044;
    white-space: pre;
}

/* Card Action */
.ps-card-action {
    margin-top: auto;
}

/* Card Button */
.ps-card-btn {
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    display: block;
}

.ps-card-btn span {
    background-color: #3674FF;
    color: #fff;
    border-radius: 12px;
    display: inline-block;
    width: 100%;
    text-align: center;
    box-shadow: 0px 8px 16px 0px #3674ff4d;
    font-weight: 700;
    padding: 16px 32px;
    font-size: 18px;
    line-height: 24px;
}

.ps-card-btn span:hover {
    background-color: #4a82ff;
    box-shadow: none;
}

/* Card Free Text */
.ps-card-free-text {
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #47aabf;
    margin-top: 16px;
    white-space: nowrap;
}

/* Special Card */
.ps-card.special {
    justify-content: space-between;
    flex-direction: row;
}

@media (max-width: 768px) {
    .ps-card.special {
        flex-direction: column;
    }
}

.ps-card.special .left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ps-card.special .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .ps-card.special .right {
        gap: 24px;
    }
}

.ps-card-info {
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #273044;
    margin-bottom: 4px;
}

.ps-card-info-more {
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #8c939f;
}

/* See All Section */
.ps-see-all {
    width: max-content;
    margin: 56px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

@media (max-width: 768px) {
    .ps-see-all {
        margin: 24px auto;
    }
}

.ps-see-all h3 {
    font-weight: 700 !important;
    font-size: 22px !important;
    line-height: 30px !important;
    color: #273044 !important;
    margin: 0 !important;
}

/* Table Wrapper */
.ps-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    contain: none;
}

@media (max-width: 768px) {
    .ps-table-wrapper {
        overflow-x: auto;
    }
}

/* Table */
.ps-table {
    border: 1px solid #e0e8ef;
    border-radius: 24px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
    table-layout: fixed;
}

@media (max-width: 768px) {
    .ps-table {
        min-width: 768px;
    }
}

.ps-table thead {
    background: white !important;
    border-radius: 24px 24px 0 0;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible !important;
    opacity: 1 !important;
    display: table-header-group !important;
}

@media (max-width: 768px) {
    .ps-table thead {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        background: white !important;
        z-index: 999 !important;
        transition: box-shadow 0.3s ease;
        transform: translateZ(0);
        will-change: transform;
        border-radius: 0;
    }

    .ps-table thead.is-scrolled {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid #e0e8ef;
    }

    .ps-table thead th {
        position: sticky;
        top: 0;
        background: inherit;
        z-index: inherit;
    }
}

@media (min-width: 769px) {
    .ps-table thead.is-fixed {
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 24px;
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .ps-table thead th {
        background: inherit;
    }
}

.ps-table tbody {
    border: none;
}

/* Table Column */
.ps-table-col {
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #273044;
    border: none;
}

.ps-table-col.double-content {
    flex-direction: column;
}

.ps-table-col:first-child {
    width: 30%;
    justify-content: flex-start;
    text-align: left;
    gap: 8px;
    align-items: center;
}

.ps-table-col:first-child .feature-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
}

.ps-table-col:first-child .feature-text {
    flex: 0 1 auto;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
}

.ps-table-col:first-child .feature-text h3 {
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 26px !important;
    margin: 0 !important;
    color: #273044 !important;
    font-family: inherit !important;
}

.ps-table-col:first-child .ps-info {
    flex: 0 0 auto;
}

.ps-table-col:not(:first-child) {
    width: 23.33%;
    border-left: 1px solid #e0e8ef;
    align-items: center;
    text-align: center;
}

.ps-table-col .sale {
    text-decoration: line-through;
    font-size: 24px;
    color: #8c939f;
    margin-left: 8px;
    font-weight: 400;
}

/* Table Row */
.ps-table-row {
    display: flex;
    padding: 0;
    border: none;
}

.ps-table-row.ps-section {
    border-top: 1px solid #e0e8ef;
    border-bottom: 1px solid #e0e8ef;
    background-color: transparent;
}

.ps-table-row:not(.ps-section):not(.ps-head) {
    background-color: transparent;
}

.ps-table-row:not(.ps-section):not(.ps-head):nth-child(odd) {
    background-color: #f5f6f7;
}

.ps-table-row.ps-head .ps-table-col {
    background-color: #f5f6f7;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ps-table-row.ps-head .ps-table-col:first-child {
    border-top-left-radius: 16px;
    justify-content: flex-start;
}

.ps-table-row.ps-head .ps-table-col:last-child {
    border-top-right-radius: 16px;
}

.ps-table-row.ps-head .ps-table-col:not(:first-child) {
    border-left: 1px solid #fff;
    background-color: #273044;
    padding: 20px 12px;
}

/* Table Buttons in Header */
.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-btn,
.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-secondary-btn {
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    border-radius: 4px;
}

.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-btn:hover,
.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-secondary-btn:hover {
    transform: translateY(-1px);
}

.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-btn:active,
.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-secondary-btn:active {
    transform: translateY(0);
}

.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-btn {
    background: #2196f3;
    color: white;
    padding: 10px 40px;
    box-shadow: none;
    font-size: 14px;
    line-height: 20px;
}

.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-btn:hover {
    background: #1976d2;
}

@media (max-width: 768px) {
    .ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-btn {
        padding: 10px 35px;
    }
}

.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-secondary-btn {
    background: transparent;
    color: #2196f3;
    border: 1px solid #2196f3;
    padding: 9px 39px;
    font-size: 14px;
    line-height: 20px;
}

.ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-secondary-btn:hover {
    background: #2196f3;
    color: white;
}

@media (max-width: 768px) {
    .ps-table-row.ps-head .ps-table-col:not(:first-child) .ps-secondary-btn {
        padding: 9px 34px;
    }
}

/* Dynamic padding based on plan count */
.ps-table.plan-count-3 .ps-table-col {
    padding: 27px 12px;
}

.ps-table.plan-count-3 .ps-table-sec-title {
    padding: 27px 12px;
}

.ps-table.plan-count-4 .ps-table-col {
    padding: 24px 12px;
}

.ps-table.plan-count-4 .ps-table-sec-title {
    padding: 24px 12px;
}

/* Section Title */
.ps-table-sec-title {
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    color: #273044;
    padding: 12px;
    border: none;
}

@media (max-width: 768px) {
    .ps-table-sec-title {
        padding: 16px;
    }
}

/* Table Plan Header */
.ps-table-plan {
    width: 100%;
    text-align: left;
}

.ps-table-plan-name {
    font-weight: 700;
    font-size: 22px;
    line-height: 20px;
    color: #fff;
    margin-bottom: 4px;
}

.ps-table-plan-name .coming-soon-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    background-color: #273044;
    border-radius: 16px;
    font-weight: 600;
    font-size: 12px;
    line-height: 14px;
    color: #fff;
    vertical-align: middle;
}

.ps-table-plan-price {
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #a6aab3;
    margin-bottom: 16px;
}

/* Info Icon & Tooltip */
.ps-info {
    display: inline-flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    margin-left: 8px;
    margin-top: 2px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    cursor: help;
    transition: all 0.2s ease;
    position: relative;
    vertical-align: middle;
}

.info-icon:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.1);
}

.info-icon::before {
    content: 'i';
    font-family: "Onest", sans-serif;
    font-style: normal;
}

.ps-tip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #273044;
    text-align: center;
    color: #fdfdfd;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    transition: opacity 0.2s;
    z-index: 9999;
    min-width: 200px;
    max-width: 300px;
    white-space: normal;
}

.ps-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #273044 transparent transparent transparent;
}

.ps-info:hover .ps-tip {
    visibility: visible;
    opacity: 1;
}

/* Check and Cross Icons */
.check-icon {
    display: inline-block;
    background-size: contain;
    width: 24px;
    height: 24px;
    background-image: url('../../templates/master/src/assets/images/svg/table-check.svg');
}

.cross-icon {
    display: inline-block;
    background-size: contain;
    width: 24px;
    height: 24px;
    background-image: url('../../templates/master/src/assets/images/svg/cross.svg');
}

/* Additional Options */
.ps-additionals {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ps-additionals .ps-card {
    display: flex;
    gap: 24px;
    flex-direction: row;
}

@media (max-width: 768px) {
    .ps-additionals .ps-card {
        flex-direction: column;
    }
}

.ps-additionals .ps-card .left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 70%;
}

@media (max-width: 768px) {
    .ps-additionals .ps-card .left {
        width: 100%;
    }
}

.ps-additionals .ps-card .right {
    width: 30%;
}

@media (max-width: 768px) {
    .ps-additionals .ps-card .right {
        width: 100%;
    }
}

.ps-additionals .ps-card-price {
    display: flex;
    gap: 8px;
}

.ps-additionals .ps-card.on-sale {
    border-color: #ffacac;
}

.ps-additionals .ps-card .sale-badge {
    display: none;
}

.ps-additionals .ps-card.on-sale .sale-badge {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: rotate(-90deg) translate(60%, -85%);
    padding: 4px 12px;
    background-color: #ff5c5c;
    border-radius: 16px;
    color: #fff;
}

.ps-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ps-card-list-option {
    position: relative;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    padding-left: 32px;
}

.ps-card-list-option::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('../../templates/master/src/assets/images/svg/check.svg');
}

.ps-card-list-toggler {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 32px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #47aabf;
    cursor: pointer;
    padding: 8px 0;
}

/* Additional Heading */
.ps-additional-heading {
    position: relative;
    margin-top: 56px;
    cursor: pointer;
    padding: 8px;
    margin: 56px -8px 0 -8px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.ps-additional-heading .ps-title {
    text-align: left;
    margin-top: 0 !important;
    margin-left: 0 !important;
}

.ps-additional-heading .ps-subtitle {
    text-align: left;
}

/* Responsive Visibility */
.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
}

/* Progressive Enhancement */
#airporttaxis-wizard-master-container[data-ssr="true"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.vue-hydrating #airporttaxis-wizard-master-container {
    opacity: 0.7;
}
