* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#plansContainer *,.quote-form *{
    font-family: 'Lato';
}
body {
    font-family: 'Lato';
    color: #333;
    line-height: 1.5;
/*     background-color: #f9fafb; */
}


.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: visible;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }


:root {
    --deep-blue: #17B3E4;
    --deep-blue-hover: #17B3E4;
    --magenta: rgb(216 22 113 / 0.9);
    --magenta-hover: rgb(216 22 113 / 0.9);
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --yellow-400: #fbbf24;
    --red-500: #ef4444;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
}

.hero-section {
    padding: 2.5rem 0 0;
    background-color: var(--gray-50);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
    z-index: 1;
	background-image: url(/wp-content/themes/PolicyAdvisor/viq/uploads/images/heroImageviq.webp);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 80vw;
    margin: 0 auto;
    padding: 0 10px 20px 10px;
    overflow: visible;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-800);
    font-weight: 500;
    line-height: 1.75;
/*     max-width: 42rem; */
    margin: 0 auto;
}

.quote-form-container {
    width: 100%;
    max-width: 80vw;
	padding-inline:10px;
    margin: 0 auto;
    overflow: visible;
}

.quote-form {
    background: white;
    border-radius: 0.75rem;
    /* border: 1px solid rgba(229, 231, 235, 0.5); */
    overflow: visible;
    position: relative;
    z-index: 10;
}

button.buy-button.blue-button {
    background: #17b3e4;
}

.visa-tabs {
    display: flex;
    /* border: 1px solid var(--gray-300); */
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--gray-100);
}

.visa-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    background-color: var(--gray-200);
    color: var(--gray-600);
    font-size: 16px;
    padding: 20px;
}

.visa-tab:hover {
    background-color: var(--gray-300);
    color: var(--gray-700);
}

.visa-tab.active {
    background-color: var(--deep-blue);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.visa-tab:not(:last-child) {
    border-right: 1px solid var(--gray-300);
}


.form-content {
    padding: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    line-height: 1.25rem;
}

.form-input-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.form-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 1rem;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.50rem;
    text-align: left;
    transition: all 0.2s;
    height: auto;
}

.form-button:hover {
    border-color: var(--deep-blue);
    background-color: rgba(249, 250, 251, 0.5);
}

.form-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 64, 133, 0.2);
}

.form-button.error {
    border-color: var(--red-500);
}

.form-button-content {
    display: flex;
    align-items: center;
    min-width: 0;
}

.form-button-icon {
    width: 1rem;
    height: 1rem;
    opacity: 0.5;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.form-button-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron-icon {
    width: 1rem;
    height: 1rem;
    opacity: 0.5;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.error-message {
    /* display: none; */
    height: 1rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--red-500);
}


.popover {
    position: absolute;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    z-index: 100000;
    display: none;
    max-height: none;
    overflow: visible;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
}

.popover.open {
    display: block;
}

.popover-content {
    padding: 0.75rem;
}


#coverageDropdown {
    max-height: none;
    overflow: visible;
    right: auto;
}

#coverageDropdown .popover-content {
    width: 300px !important;
    max-width: 90vw;
    max-height: none;
    overflow: visible;
}


#provinceDropdown, #travellersDropdown {
    max-height: none;
    overflow: visible;
}


#ageInputsList {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
}

.popover-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: colors 0.15s;
}

.popover-item:hover {
    background-color: var(--gray-100);
}

.popover-item.active {
    background-color: var(--deep-blue);
    color: white;
}


.number-controls {
    display: flex;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 1.75rem;
    background: white;
}

.number-button {
    padding: 0 0.375rem;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}

.number-button:hover:not(:disabled) {
    background-color: var(--gray-50);
}

.number-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.number-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.75rem;
    padding: 0 0.75rem;
    min-width: 1.5rem;
}


.age-input {
    width: 6rem;
    height: 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.age-input:focus {
    outline: none;
    border-color: var(--deep-blue);
    box-shadow: 0 0 0 2px rgba(0, 64, 133, 0.2);
}


.checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover .checkbox-box {
    border-color: rgba(0, 64, 133, 0.5);
}

.checkbox-item.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.checkbox-box {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    border: 1px solid var(--gray-300);
    background: white;
    transition: all 0.2s;
}

.checkbox-item.checked .checkbox-box {
    background-color: var(--deep-blue);
    border-color: var(--deep-blue);
}

.checkbox-label {
    font-size: 1rem;
    color: var(--gray-700);
    cursor: pointer;
    user-select: none;
    transition: colors 0.15s;
}

.checkbox-item:hover .checkbox-label {
    color: var(--gray-900);
}

.submit-button {
    width: 100%;
    background-color: rgb(216 22 113 / 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.625rem;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-button:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.02);
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.calendar-popup {
    position: absolute;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    display: none;
    max-width: 100%;
    width: calc(100vw - 2rem);
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .calendar-popup {
        max-width: 620px;
    }
}

.calendar-popup.open {
    display: block;
}

.calendar-content {
    padding: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-title {
    font-size: 1rem;
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .calendar-container {
        flex-direction: row;
    }
}

.calendar-month {
    flex-shrink: 0;
    min-width: 100%;
}

@media (min-width: 768px) {
    .calendar-month {
        min-width: 280px;
    }
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.15s;
    min-height: 32px;
    padding: 2px;
}

.calendar-day:hover:not(.disabled) {
    background-color: var(--gray-100);
    color: var(--deep-blue);
}

.calendar-day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: var(--deep-blue);
    color: white;
}

.calendar-day.in-range {
    background-color: rgba(0, 113, 194, 0.1);
    color: var(--gray-700);
}

.calendar-day.start-date {
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
}

.calendar-day.end-date {
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
}

.plans-section {
    padding: 2rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 0;
}

.plans-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.plan-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid var(--deep-blue);
    box-shadow: 0 0 0 1px var(--deep-blue);
    margin-bottom: 2rem;
    transition: box-shadow 0.2s;
}

.plan-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05),
                0 0 0 1px var(--deep-blue);
}

.plan-content {
    padding: 1.25rem;
    position: relative;
}

.pre-existing-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 12rem;
    height: auto;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-blue);
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.plan-layout {
    display: flex;
    flex-wrap: wrap;
}

.plan-logo-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.plan-logo-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding: 20px 10px;
}

.plan-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.plan-rating {
    display: flex;
    align-items: center;
    justify-content: center;
	padding-left: 8px;
    margin-bottom: 0.25rem;
}

.rating-number {
    font-weight: 700;
    font-size: 1.125rem;
    margin-right: 0.25rem;
}

.rating-stars {
    display: flex;
}

.star {
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
}

.star-half {
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    display: inline-block;
}

.star-empty {
    color: var(--gray-200);
}

.star-filled {
    color: var(--yellow-400);
}

.plan-features {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon-wrapper {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    border: 1px solid var(--gray-100);
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--deep-blue);
}

.feature-content {
    min-width: 0;
    flex: 1;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
}

.feature-description {
    font-size: 14px;
    color: var(--gray-600);
    word-wrap: break-word;
}

.show-more-features {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
}

.show-more-features:hover {
    background-color: var(--gray-50);
}

.plan-price-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
/*     margin-top: 1rem; */
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--magenta);
}

.price-blur {
    filter: blur(4px);
}

.plan-price-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    font-weight: 500;
}


.plan-price-subtitle.monthly-available {
    color: var(--deep-blue);
    font-weight: 600;
}

.plan-price-subtitle.upfront-payment {
    color: var(--gray-600);
    font-weight: 500;
}

.buy-button, .call-button {
    width: 100%;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 16px;
	letter-spacing:0.5px;
    text-transform: uppercase;
    transition: all 0.15s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.buy-button {
    background-color: var(--magenta);
    color: white;
}

.buy-button:hover:not(:disabled) {
    background-color: rgba(233, 30, 99, 0.9);
}

.buy-button:disabled {
    background-color: var(--gray-400);
    cursor: not-allowed;
}

.call-button {
    background-color: var(--deep-blue);
    color: white;
}

.call-button:hover {
    background-color: rgba(0, 64, 133, 0.9);
}

.plan-partner-text {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.show-details-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--gray-100);
    border-radius: 0.5rem;
    color: var(--deep-blue);
    font-size: 16px;
    font-weight: 500;
    margin-top: 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.show-details-button:hover {
    color: #17B3E4;
}

.details-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    display: none;
}

.details-box {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.details-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.details-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.details-text {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.details-list {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.details-list li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.downloads-box {
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: var(--gray-50);
}

.downloads-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.downloads-title {
    font-weight: 500;
    color: var(--gray-700);
    margin-right: 1rem;
}

.downloads-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    color: var(--blue-400);
    text-decoration: none;
}

.download-link:hover {
    color: var(--blue-500);
}

.pdf-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fee2e2;
    border-radius: 0.375rem;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--red-500);
}


.mobile-details-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-section {
    margin-bottom: 0.75rem;
}

.mobile-section-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.mobile-subsection-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.mobile-section-text {
    color: var(--gray-700);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.mobile-features-list {
    list-style: disc;
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

.mobile-feature-item {
    color: var(--gray-700);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.mobile-downloads-box {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.75rem;
    background-color: var(--gray-50);
}

.mobile-downloads-title {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.mobile-downloads-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-download-link {
    display: flex;
    align-items: center;
    color: var(--blue-400);
    text-decoration: none;
    font-size: 0.75rem;
}

.mobile-download-link:hover {
    color: var(--blue-500);
}

.mobile-pdf-icon {
    width: 30px;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fee2e2;
    border-radius: 0.375rem;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--red-500);
}


.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.show-more-button {
    color: var(--deep-blue);
    border: 2px solid var(--deep-blue);
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-family: 'Lato';
    font-size: 18px;
}

.show-more-button:hover {
    background-color: var(--deep-blue);
    color: white;
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 28rem;
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.customer-form {
    padding: 1.5rem;
}

.form-header {
    margin-bottom: 1.5rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--deep-blue);
    box-shadow: 0 0 0 3px rgba(0, 64, 133, 0.1);
}

.form-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-submit, .form-cancel {
    flex: 1;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    font-size: 0.875rem;
}

.form-submit {
    background-color: var(--deep-blue);
    color: white;
}

.form-submit:hover:not(:disabled) {
    background-color: var(--deep-blue-hover);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-cancel {
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.form-cancel:hover {
    background-color: var(--gray-50);
}


.mobile-details-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9998;
}

.mobile-details-popup.open {
    display: flex;
}

.mobile-details-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 24rem;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.mobile-details-inner {
    padding: 1.5rem;
}

.mobile-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.close-button {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.close-button:hover {
    background-color: var(--gray-100);
}


.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--deep-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state, .error-state {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.empty-state-title, .error-state-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.error-state-title {
    color: var(--red-600);
}

.empty-state-text, .error-state-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.action-button {
    padding: 1rem 2rem;
    background-color: var(--deep-blue);
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    transform: scale(1);
}

.action-button:hover {
    background-color: rgba(0, 64, 133, 0.9);
    transform: scale(1.05);
}

.action-button:active {
    transform: scale(0.95);
}


.desktop-only {
    display: none;
}


/* Buy button and call button styles are defined above */

/* --- Reordered 3+1 Layout for Tablets (768px to 991px) --- */
@media (min-width: 768px) and (max-width: 990px) {
	.light-blue-bordered-widget {
    	max-width: 90%;
	}
	.form-grid {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		gap: 1.5rem 1rem;
	}

	/* --- 1. Reorder the fields using the 'order' property --- */
	.form-grid > .form-field:nth-of-type(1) { order: 1; } /* Place of Purchase */
	.form-grid > .form-field:nth-of-type(3) { order: 2; } /* Number of Travellers */
	.form-grid > .form-field:nth-of-type(4) { order: 3; } /* Coverage Amount */
	.form-grid > .form-field:nth-of-type(2) { order: 4; } /* Coverage Dates */
	.form-grid > .form-field.desktop-only   { order: 5; } /* Quote Button */
	.form-grid > .form-field.col-span-12   { order: 6; } /* Checkboxes */

	/* --- 2. Apply column spans to create the layout --- */
	/* Row 1 (Place of Purchase, Travellers, Amount) */
	.form-grid > .form-field:nth-of-type(1),
	.form-grid > .form-field:nth-of-type(3),
	.form-grid > .form-field:nth-of-type(4) {
		grid-column: span 4;
	}

	/* Row 2 (Coverage Dates, Button) */
	.form-grid > .form-field:nth-of-type(2),
	.form-grid > .form-field.desktop-only {
		grid-column: span 6;
	}

	/* --- Full-width items below --- */
	.form-field.col-span-12 {
		grid-column: span 12;
	}

	.mobile-only {
		display: none;
	}

	.desktop-only {
		display: flex;
	}

	/* Keep the button alignment fix from before */
	.form-field.desktop-only > div:first-child {
		height: 24px !important;
	}
}


@media (min-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .form-content {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 0.5rem 0.5rem;
    }
    
    .form-label {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.25rem;
    }
    
    .col-span-2 { grid-column: span 2; }
    .col-span-3 { grid-column: span 3; }
    .col-span-12 { grid-column: span 12; }
	
    .desktop-only {
        display: flex;
    }
    
    .mobile-only {
        display: none;
    }
    
    .mt-desktop-0 { margin-top: 0; }
    
    .plans-title {
        font-size: 1.875rem;
    }
    
    .plan-name {
        text-align: left;
        margin-top: 0;
    }
    
    .plan-layout {
        flex-wrap: nowrap;
    }
    
    .plan-logo-section {
        width: 12rem;
        margin-bottom: 0;
        padding-right: 1.5rem;
    }
    
    .plan-logo-wrapper {
        height: auto;
        padding: 20px 10px;
    }
    
    .plan-features {
        flex: 1;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem 1rem;
/*         padding-left: 2rem; */
        padding-right: 0.75rem;
        border-right: 1px solid #ddd;
    }
    
    .plan-price-section {
        width: 14rem;
        margin-bottom: 2rem;
        padding-left: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .plan-price {
		font-size: 36px;
        font-weight: 800;
    }
    
    .buy-button, .call-button {
        width: auto;
    }
    
    .show-more-features {
        display: none;
    }
    
    .desktop-features {
        display: contents;
    }
    
    .details-content.show {
        display: block;
    }
    
    .checkbox-label {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
	.plans-section,.hero-content,.quote-form-container{
		max-width:100vw !important;
	}
		.plan-name{
		margin-top:0;
	}
}

.icon {
    display: inline-block;
    vertical-align: middle;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}

.hero-section {
    max-width: 100%;
    overflow: visible;
}

.plans-section {
    max-width: 80vw;
    overflow: visible;
}
.details-content.show {
    display: block;
}
@media (min-width: 768px) and (max-width: 990px) {
    .plans-section {
        max-width: 80vw;
    }
}
@media (min-width: 991px) and (max-width: 1350px)  {
	.quote-form-container {
    max-width: 90vw;
	}
    .plans-section {
        max-width: 90vw !important;
    }
}
@media (min-width: 1240px)  {
		.coverage_date_field{
		min-width:285px;
	}
	.coverage_amount_field{
		min-width:210px;
	}
	.no_of_traveller_field{
		min-width:240px;
	}
}

.partner_text {
    font-size: 12px;
    line-height: 16px;
    margin-top: 8px;
}