:root {
    --y-blue: #004a99;
    --y-yellow: #ffc107;
    --y-red: #ea4335;
    --y-purple: #9c27b0;
    --y-teal: #00bcd4;
    --y-green: #4caf50;
    --dark: #333;
    --grey: #666;
    --light-grey: #f5f5f5;
    --border: #ddd;
    --white: #fff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

/* Top Utility Bar */
.top-util-bar {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10001;
}

.util-items {
    display: flex;
    align-items: center;
    gap: 15px;
}

.util-link {
    color: var(--grey);
    font-size: 1rem;
    text-decoration: none;
}

.util-link.yellow {
    color: var(--y-yellow);
}

.util-link.green {
    color: var(--y-green);
}

.login-link {
    font-weight: 600;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.flag-selector img {
    height: 12px;
    margin-left: 5px;
    cursor: pointer;
}

/* Header */
header {
    background: #fff;
    padding: 0;
    /* Removed padding to align tabs to bottom */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    height: 70px;
}

.logo a {
    display: block;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    flex-grow: 1;
    height: 100%;
}

.nav-tabs {
    display: flex;
    list-style: none;
    gap: 0;
    height: 100%;
    align-items: center;
    border-left: 1px solid #f0f0f0;
}

.nav-tabs li {
    height: 100%;
}

.tab-link {
    display: flex;
    /* Centers text vertically */
    align-items: center;
    height: 100%;
    padding: 0 18px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-right: 1px solid #f9f9f9;
}

/* Specific Tab Colors - Fill on Hover/Active */
.nav-item-check:hover,
.nav-item-check.active {
    background-color: #e94e1b;
    color: #fff;
    border-bottom-color: #e94e1b;
}

.nav-item-migrate:hover,
.nav-item-migrate.active {
    background-color: #6a1b9a;
    color: #fff;
    border-bottom-color: #6a1b9a;
}

.nav-item-work:hover,
.nav-item-work.active {
    background-color: #00bcd4;
    color: #fff;
    border-bottom-color: #00bcd4;
}

.nav-item-study:hover,
.nav-item-study.active {
    background-color: #ffc107;
    color: #000;
    /* Black text for visibility on yellow */
    border-bottom-color: #ffc107;
}

.nav-item-visa:hover,
.nav-item-visa.active {
    background-color: #78909c;
    color: #fff;
    border-bottom-color: #78909c;
}

.nav-item-coaching:hover,
.nav-item-coaching.active {
    background-color: #0d47a1;
    color: #fff;
    border-bottom-color: #0d47a1;
}

.nav-item-refer:hover,
.nav-item-refer.active {
    background-color: #8bc34a;
    color: #fff;
    border-bottom-color: #8bc34a;
}

.nav-item-jobsite:hover,
.nav-item-jobsite.active {
    background-color: #607d8b;
    color: #fff;
    border-bottom-color: #607d8b;
}

.nav-item-global:hover,
.nav-item-global.active {
    background-color: #d32f2f;
    color: #fff;
    border-bottom-color: #d32f2f;
}

.nav-search {
    padding: 0 20px;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    border-left: 1px solid #eee;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Utility Bar Updates */
.util-separator {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #ccc;
    margin: 0 12px;
}

.util-link.fw-bold {
    font-weight: 700;
    color: #222;
}

/* Tab Content Logic */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
    min-height: 60vh;
    /* Minimum height for empty tabs */
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: transparent;
    padding: 30px 0;
    margin-bottom: 0;
}

.hero-inner-card {
    background: #ffd740;
    /* Vibrant lighter yellow */
    border-radius: 12px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.15);
}

.hero-left {
    position: relative;
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
    /* Add some spacing from left edge */
}

.hero-image-wrapper {
    background: transparent;
    max-width: 450px;
    overflow: visible;
}

.hero-woman {
    width: 100%;
    display: block;
    object-fit: contain;
}

.hero-text-content {
    padding-left: 20px;
    /* Reduced gap */
    padding-bottom: 40px;
}

.destination-label {
    display: block;
    color: var(--y-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
}

.hero-bullets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    margin-bottom: 25px;
}

.hero-bullets-grid span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.hero-bullets-grid span::before {
    display: none;
    /* Already usingbullet character in text */
}

.btn-red-hero {
    background: #ea4335;
    color: #fff;
    border: none;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 40px;
    transition: var(--transition);
}

.btn-red-hero:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.hero-location-tabs.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 400px;
}

.loc-tab {
    padding: 18px;
    text-align: center;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.loc-tab:hover {
    transform: scale(1.03);
}

.loc-tab.work {
    background: #ff9800;
    color: #fff;
}

.loc-tab.migrate {
    background: #9c27b0;
    color: #fff;
}

.loc-tab.study {
    background: #2196f3;
    color: #fff;
}

.loc-tab.visit {
    background: #e91e63;
    color: #fff;
}

/* Popular Visa Section */
.popular-visa-section {
    padding: 40px 0 80px;
    background: #fff;
}

.popular-layout {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Stretch to match height of grid */
}

.popular-info {
    width: 25%;
    border: 1px solid #000;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute content evenly */
    background: #fff;
    /* Ensure solid background */
}

.ges-highlights {
    list-style: none;
    margin-top: 15px;
    margin-bottom: 15px;
}

.ges-highlights li {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.ges-highlights li i {
    color: var(--y-green);
}

.btn-text-link {
    color: var(--y-red);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-text-link:hover {
    gap: 12px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--grey);
}

.visa-grid {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Flip Card Logic */
.visa-flip-card {
    background-color: transparent;
    height: 240px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.visa-flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-card-front {
    background-color: #94abaf;
    color: white;
}

.flip-card-back {
    background-color: #fff;
    color: var(--dark);
    transform: rotateY(180deg);
    border: 1px solid var(--border);
    padding: 20px;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
}

.flip-card-front .flag-wrapper {
    width: 140px;
    height: 90px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.flip-card-front .country-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-front span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.red-marker {
    position: absolute;
    left: 20px;
    top: 55%;
    width: 20px;
    height: 4px;
    background: var(--y-red);
    z-index: 5;
}

.flip-card-back h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--y-blue);
}

.flip-card-back ul {
    list-style: none;
    width: 100%;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for Flip Cards */
.flip-card-back ul::-webkit-scrollbar {
    width: 6px;
}

.flip-card-back ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.flip-card-back ul::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}

.flip-card-back ul::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.flip-card-back li {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flip-card-back li i {
    font-size: 0.6rem;
    color: var(--grey);
}

/* Content Bands */
.band {
    width: 100%;
    height: 450px;
    margin-bottom: 40px;
    /* Consistent Gap */
}

.band-container {
    display: flex;
    height: 100%;
}

.band.reverse .band-container {
    flex-direction: row-reverse;
}

.band-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.band-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.red-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 160px;
    background: #ea4335;
    z-index: 10;
}

.band.reverse .red-line {
    left: auto;
    right: 0;
}

.band-content {
    flex: 0 0 50%;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.band-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.band-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.band-links {
    display: flex;
    gap: 20px;
}

.band-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    padding: 12px 25px;
    border-radius: 4px;
    transition: var(--transition);
}

.band-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Interchanged Colors */
.consulting-band .band-content {
    background-color: #d81b60;
}

.migrate-band .band-content {
    background-color: #6a1b9a;
}

.study-band .band-content {
    background-color: #0277bd;
}

.work-band .band-content {
    background-color: #ff8f00;
}

.coaching-band .band-content {
    background-color: #2e7d32;
}

.why-choose-band .band-content {
    background-color: #455a64;
}

.why-choose-band .btn-red {
    background: var(--y-red);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

/* Footer & Modal */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.73);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

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

.modal-card {
    background: #fff;
    width: 100%;
    max-width: 550px;
    padding: 40px;
    border-radius: 12px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.modal-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.refer-link-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.refer-link-row input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.refer-copy-btn {
    margin-bottom: 0;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 6px;
    white-space: nowrap;
}

.refer-copy-status {
    display: none;
    margin-top: 14px;
    text-align: center;
    color: #2e7d32;
    font-weight: 700;
}

.refer-copy-status.show {
    display: block;
}

.social-login-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.social-btn.facebook {
    color: #1877F2;
    font-size: 2.3rem;
}

.social-btn.google img {
    width: 32px;
}

.form-separator {
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

.modal-form .form-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
    width: 100%;
}

.modal-form input,
.modal-form select {
    flex: 1;
    min-width: 0;
    /* Crucial for flex shrinking/growing correctly */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

.form-check-group {
    margin: 15px 0 10px;
    display: flex;
    justify-content: flex-start;
    /* Ensure they stay together */
    align-items: center;
    gap: 8px;
    /* Tight gap */
    font-size: 0.9rem;
}

.form-check-group input {
    flex: 0 0 auto;
    /* Don't let it grow */
    width: 16px;
    height: 16px;
    margin: 0;
}

.form-check-group label {
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.form-toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey);
}

.toggle-switch {
    width: 60px;
    height: 30px;
    position: relative;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #f4511e;
}

input:checked+.toggle-slider:before {
    transform: translateX(30px);
}

.btn-submit-red {
    width: 100%;
    background: #ea4335;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}

/* =========================================
   FREE ELIGIBILITY WIZARD STYLES (FINAL REVISION)
   ========================================= */

#free-check-view {
    font-family: 'Outfit', sans-serif;
}

/* --- Header Section --- */
.wizard-header {
    margin-bottom: 40px;
}

.greeting-text {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.wizard-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.wizard-sub-title {
    font-size: 1rem;
    color: #444;
    margin-bottom: 15px;
}

.red-bar-divider {
    width: 60px;
    height: 6px;
    background-color: #ea4335;
    margin-bottom: 10px;
}

/* --- Layout Grid (Split) --- */
.wizard-grid-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    /* Space between form and box */
    margin-bottom: 60px;
}

/* Left Column: Form */
.wizard-left-col {
    flex: 1;
    /* Takes up remaining space */
    max-width: 650px;
}

/* Right Column: Box */
.wizard-right-col {
    width: 300px;
    /* Fixed width for the box */
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .wizard-grid-layout {
        flex-direction: column;
        gap: 40px;
    }

    .wizard-right-col {
        width: 100%;
        max-width: 350px;
    }
}

/* --- Progress Steps --- */
.step-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    color: #333;
}

.step-progress-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
}

.step-dash {
    width: 35px;
    height: 4px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
}

.step-dash.active {
    background-color: #333;
    /* Dark fill for active step */
    border-color: #333;
}

/* --- Form Styles --- */
.form-group-wizard {
    margin-bottom: 25px;
}

.form-group-wizard label {
    display: block;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #222;
}

/* Select Box as Black Button Look (for "Immigration") or standard box */
.wizard-select-box {
    width: 100%;
    max-width: 250px;
    /* Limit width like the black button in screenshot */
    padding: 10px 15px;
    font-size: 0.95rem;
    border: 1px solid #000;
    background-color: #000;
    color: #fff;
    border-radius: 0;
    /* Square edges */
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
}

/* Country Pills */
.country-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.c-pill {
    background: #fff;
    border: 1px solid #333;
    border-radius: 0;
    /* Square/Sharp edges per screenshot style preference */
    padding: 8px 20px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.c-pill:hover {
    background-color: #f5f5f5;
}

.c-pill.active {
    background: #fff;
    border: 2px solid #000;
    /* Thicker border for selected */
    font-weight: 700;
}

/* Next Button */
.wizard-actions {
    margin-top: 30px;
}

.btn-next-outline {
    background: transparent;
    border: 1px solid #ff9800;
    /* Orange/Red border as seen */
    color: #ff9800;
    padding: 10px 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
}

.btn-next-outline:hover {
    background: #ff9800;
    color: #fff;
}

/* --- Score Card Box (Right Side) --- */
.score-card-box {
    border: 1px solid #ccc;
    padding: 25px;
    text-align: center;
    background: #fff;
}

.score-helper-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 20px;
}

.divider-line {
    height: 1px;
    background: #eee;
    margin: 0 auto 20px;
    width: 100%;
}

.your-score-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.score-circle-display {
    width: 80px;
    height: 80px;
    background-color: #ea4335;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.talk-expert-box {
    text-align: left;
    margin-top: 10px;
}

.expert-label {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expert-phone {
    color: #333;
    font-weight: 700;
    text-decoration: none;
}

/* --- Content Sections --- */
.wizard-content-section {
    max-width: 900px;
}

.content-block-item {
    margin-bottom: 40px;
}

.content-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.content-block-item p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Lists */
.check-list-red,
.link-list-blue {
    list-style: none;
    padding: 0;
}

.check-list-red li,
.link-list-blue li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    font-size: 0.95rem;
    color: #333;
}

.check-list-red li::before {
    content: '•';
    color: #000;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.link-list-blue li::before {
    content: '•';
    color: #007bff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.link-list-blue a {
    color: #007bff;
    text-decoration: underline;
}

/* --- FAQs --- */
.wizard-faq-section {
    border-top: 1px solid #eee;
    padding-top: 40px;
    margin-top: 30px;
}

.section-title-center {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
    text-align: center;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Space between each FAQ box */
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #ddd;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Project it prominently like a menu */
}

.faq-question {
    padding: 18px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #222;
    user-select: none;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-answer {
    display: none;
    padding: 0 25px 20px 25px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    border-top: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ul {
    margin: 10px 0 0 20px;
    padding: 0;
    list-style: none;
}

.faq-answer ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
}

.faq-answer ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-size: 1.2rem;
    line-height: 1;
}

.toggle-icon {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
    transition: transform 0.2s;
}

.faq-item.active .toggle-icon {
    color: #333;
}

/* --- FAQ Comparison Table --- */
.faq-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

.comparison-table th {
    background: #222;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: 700;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    color: #444;
    line-height: 1.5;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.comparison-table strong {
    color: #111;
    font-weight: 700;
}

.comparison-table ul,
.comparison-table ol {
    margin: 10px 0 0 20px;
    padding: 0;
}

.comparison-table li {
    margin-bottom: 5px;
    list-style-type: disc;
}

.comparison-table li::before {
    display: none !important;
    /* Remove bullet from general FAQ styles */
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
}

/* --- Profile Detail Modals --- */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile-modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
}

.profile-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.profile-modal-close:hover {
    color: #333;
}

.profile-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.profile-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #fff;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
}

.modal-form-group input[type="checkbox"],
.modal-form-group input[type="radio"] {
    width: auto;
    padding: 0;
}

.modal-form-group textarea {
    height: 100px;
    resize: vertical;
}

.radio-group {
    display: grid;
    gap: 10px;
}

.modal-form-group .radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 500;
}

.modal-form-group .radio-option input {
    margin: 0;
}

.optional-tag {
    color: #888;
    font-weight: 400;
    font-size: 0.75rem;
}

.modal-btn-cancel {
    padding: 10px 30px;
    border: 1px solid #ea4335;
    background: transparent;
    color: #ea4335;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.modal-btn-save {
    padding: 10px 40px;
    border: none;
    background: #ea4335;
    /* Brand Red */
    opacity: 0.4;
    /* Initially dimmed/opaque */
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-save.active {
    opacity: 1;
    /* Full opacity when active */
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.modal-btn-save:hover.active {
    background: #d32f2f;
    transform: translateY(-1px);
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    margin: 5px;
    border: 1px solid #eee;
}

.skill-tag.suggested {
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
}

.skill-tag.suggested:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input-wrapper input {
    padding-right: 35px;
}

.date-input-wrapper i {
    position: absolute;
    right: 12px;
    color: #888;
    pointer-events: none;
}

.profile-list-container {
    margin-top: 15px;
}

.profile-list-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid #f0f0f0;
}

.profile-list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.profile-list-item-title {
    font-weight: 700;
    color: #111;
    font-size: 1rem;
}

.profile-list-item-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.profile-list-item-meta {
    font-size: 0.85rem;
    color: #888;
}

.profile-list-item-actions {
    display: flex;
    gap: 15px;
}

.btn-edit-item,
.btn-delete-item {
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.btn-edit-item:hover {
    color: #ea4335;
}

.btn-delete-item:hover {
    color: #111;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.profile-skill-tag {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-skill-tag i {
    color: #888;
    cursor: pointer;
    font-size: 0.75rem;
}

.profile-skill-tag i:hover {
    color: #ea4335;
}

@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
        height: auto;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
    }

    .nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
        border-left: 0;
    }

    .nav-tabs li {
        flex: 0 0 auto;
    }

    .hero-inner-card {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .hero-left {
        justify-content: center;
        padding-left: 0;
    }

    .hero-text-content {
        padding-left: 0;
        text-align: center;
    }

    .hero-location-tabs.grid-2x2 {
        margin: 0 auto;
    }

    .popular-layout {
        flex-direction: column;
        gap: 24px;
    }

    .popular-info,
    .visa-grid {
        width: 100%;
    }

    .visa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .util-items {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-bullets-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .visa-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 38px;
    }

    .hero-inner-card {
        padding: 22px;
    }

    .loc-tab {
        padding: 12px;
        font-size: 0.9rem;
    }
}
