:root {
    --primary: #002868; /* US Navy Blue */
    --accent: #BF0A30; /* US Red */
    --secondary: #FFFFFF; /* White */
    --bg: #f4f7f9;
    --card-bg: #FFFFFF;
    --text: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: block;
    padding-top: 0;
}

/* Navbar */
.navbar {
    background: var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary);
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 3px solid var(--accent);
    padding: 10px 0;
}

/* Custom Scrollbar for Dropdown */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Cities Grid Dropdown */
.cities-dropdown {
    min-width: 380px;
    padding: 15px !important;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.city-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.city-item:hover {
    background: rgba(191, 10, 48, 0.3) !important;
    transform: translateX(3px);
}

.city-name {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hotel booking links */
.hotel-link {
    display: inline-block;
    background: #BF0A30;
    color: #FFFFFF !important;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 4px 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hotel-link:hover {
    background: #8B0000;
    transform: translateY(-1px);
}

/* Price disclaimer styling */
.itinerary-details em {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.matches-dropdown {
    min-width: 320px;
    max-height: 70vh;
    overflow-y: auto;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.match-list a {
    display: block;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.match-list a:hover {
    background: rgba(191, 10, 48, 0.3) !important;
}

.match-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.city-label {
    font-weight: 800;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    min-width: 100px;
}

.match-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.match-dates a {
    display: inline !important;
    padding: 0 !important;
    color: #FFFFFF !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: color 0.3s;
}

.match-dates a:hover {
    color: var(--accent) !important;
    background: none !important;
}

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 40, 104, 0.7), rgba(0, 40, 104, 0.9)), url('https://images.unsplash.com/photo-1511886929837-354d827aae26?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 4px 15px rgba(191, 10, 48, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    background: #a00828;
}

.hero-map-note {
    margin-top: 20px;
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-style: italic;
}

.hero-nav-note {
    margin-top: 10px;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

.itinerary-map-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 10px;
    font-style: italic;
}

.info-sections {
    max-width: 1200px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 5px solid var(--primary);
    transition: transform 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    padding: 60px 40px;
    margin: -80px auto 50px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    border-top: 5px solid var(--accent);
}

header h2 {
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

select, input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid #e1e4e8;
    background: #FFFFFF;
    color: #333;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23002868' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

input[type="date"] {
    position: relative;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Two-Factor Authentication Styles */
.two-factor-section {
    text-align: center;
    padding: 30px 20px;
}

.two-factor-section header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.two-factor-section header p {
    color: #666;
    margin-bottom: 30px;
}

.two-factor-demo {
    background: linear-gradient(135deg, var(--primary) 0%, #001a45 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    max-width: 400px;
    margin: 0 auto;
}

.code-display {
    margin-bottom: 25px;
}

.code-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.verification-code {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 4px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
}

.auth-link {
    display: inline-block;
    background: var(--accent);
    color: #FFFFFF !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    margin: 15px 0;
    transition: background 0.2s, transform 0.2s;
}

.auth-link:hover {
    background: #a00828;
    transform: translateY(-2px);
}

.qr-code-container {
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.qr-code-img {
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.code-timer {
    font-size: 0.85rem;
    opacity: 0.8;
}

.code-timer span {
    font-weight: bold;
    color: #ffd700;
}

.code-input-section {
    margin-top: 20px;
}

.code-input-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.code-input-section input {
    width: 100%;
    padding: 15px;
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 15px;
}

.code-input-section input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.code-input-section input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
}

#verifyCodeBtn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

#verifyCodeBtn:hover {
    background: #a00828;
    transform: scale(1.02);
}

.verify-error {
    color: #ff6b6b;
    margin-top: 10px;
    font-size: 0.9rem;
}

.demo-note {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
}

.recaptcha-wrapper {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    overflow: visible;
    min-height: 78px;
}

.recaptcha-wrapper > div {
    transform-origin: center;
}

/* Mobile reCAPTCHA scaling */
@media (max-width: 400px) {
    .recaptcha-wrapper {
        transform: scale(0.9);
        transform-origin: center;
    }
}

@media (max-width: 340px) {
    .recaptcha-wrapper {
        transform: scale(0.8);
        transform-origin: center;
    }
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.2s;
}

button[type="submit"]:hover {
    background: #001a45;
}

#result {
    margin-top: 30px;
    padding: 20px;
    background: var(--primary);
    border-radius: 8px;
    border-left: 5px solid var(--accent);
    color: #FFFFFF;
}

#resultContent h1, 
#resultContent h2, 
#resultContent h3, 
#resultContent h4,
#resultContent strong,
#resultContent li,
#resultContent p,
#resultContent div {
    color: #FFFFFF !important;
}

.itinerary-details {
    color: #FFFFFF;
}

.itinerary-details h1, 
.itinerary-details h2, 
.itinerary-details h3, 
.itinerary-details h4,
.itinerary-details strong,
.itinerary-details li {
    color: #FFFFFF;
}

.itinerary-details h1, 
.itinerary-details h2, 
.itinerary-details h3, 
.itinerary-details h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.result-header h2 {
    color: #FFFFFF;
    margin-bottom: 10px;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: #FFFFFF;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2,
.about-heading {
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.about-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.about-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.footer {
    background: var(--primary);
    padding: 40px 20px;
    text-align: center;
    color: #FFFFFF;
    font-size: 0.9rem;
    border-top: 3px solid var(--accent);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-top: 2px solid var(--accent);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links > li:last-child {
        border-bottom: none;
    }
    
    .nav-links > li > a {
        display: block;
        padding: 15px 10px;
        font-size: 1rem;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        background: rgba(0,0,0,0.2);
        max-height: 300px;
        overflow-y: auto;
        padding: 10px 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .nav-links {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .dropdown-content a,
    .match-item {
        padding: 10px 20px;
    }
    
    .cities-dropdown {
        min-width: auto;
        padding: 10px !important;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .city-item {
        padding: 10px 12px !important;
    }
    
    .city-name {
        font-size: 0.85rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .container {
        margin: -30px 15px 50px;
        padding: 30px 20px;
        width: auto;
    }
    
    .info-sections {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px auto;
    }
    
    .info-card {
        padding: 25px 20px;
    }
    
    .about-section {
        padding: 50px 20px;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-heading {
        flex-direction: column;
        gap: 10px;
    }
    
    .about-logo {
        width: 45px;
        height: 45px;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    #result {
        padding: 20px 15px;
    }
    
    .result-header h2 {
        font-size: 1.4rem;
    }
    
    .itinerary-details {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .inline-map-container {
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .inline-map-title {
        font-size: 1.2rem;
    }
    
    .inline-map-legend {
        gap: 15px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    #tripMap {
        height: 280px;
    }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

header p {
    color: #ccc;
    font-style: italic;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

select, input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: white;
    font-size: 1rem;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary);
}

button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.2s;
}

button:hover {
    background: #e6c200;
}

button:active {
    transform: scale(0.98);
}

#loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.hidden {
    display: none;
}

#result {
    margin-top: 30px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

#resultContent h2 {
    color: var(--primary);
    margin: 20px 0 10px;
}

#resultContent ul {
    margin-bottom: 15px;
    list-style-position: inside;
}

#resetBtn {
    margin-top: 20px;
    padding: 12px 25px;
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

#resetBtn:hover {
    background: #FFFFFF;
    color: var(--primary);
}

/* Inline Map inside Itinerary */
.inline-map-container {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.inline-map-title {
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.inline-map-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

.dot.red {
    background-color: #BF0A30;
}

.dot.blue {
    background-color: #002868;
}

.dot.green {
    background-color: #00A550;
}

#tripMap {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .hero-map-note,
    .hero-nav-note {
        font-size: 0.85rem !important;
    }
    
    .container {
        margin: -20px 10px 40px;
        padding: 25px 15px;
    }
    
    header h2 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    .info-card h3 {
        font-size: 1rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .about-logo {
        width: 40px;
        height: 40px;
    }
    
    .about-heading {
        font-size: 1.5rem !important;
    }
    
    #result {
        padding: 15px 12px;
    }
    
    .result-header h2 {
        font-size: 1.2rem;
    }
    
    .itinerary-details {
        font-size: 0.9rem;
    }
    
    #tripMap {
        height: 250px;
    }
    
    .inline-map-legend {
        gap: 10px;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    #resetBtn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .footer {
        padding: 25px 15px;
        font-size: 0.8rem;
    }
}
