/* CruiseBookUSA Custom Styles */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #059669;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --border-color: #e5e7eb;
}

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 76px; /* Account for fixed navbar */
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    color: #fff !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: url("../images/cruise-hero.jpg") center/cover no-repeat;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(30, 58, 138, 0.6), rgba(5, 150, 105, 0.6));
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" fill-opacity="0.1"><path d="M0,0v100h1000V0c-166.7,33.3-333.3,50-500,50S166.7,33.3,0,0z"/></svg>') repeat-x bottom;
    background-size: 100px 20px;
    z-index: 1;
}

.hero-image-overlay {
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
}

.btn-warning:hover {
    background: #f59e0b;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-warning:focus {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.5);
    text-decoration: none;
}

/* Hero Call Button Specific Styles */
.hero-content .btn-warning {
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.hero-content .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Right Sidebar */
.sticky-top {
    z-index: 1020;
}

/* Mobile Navigation Improvements */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    font-size: 1.1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile-optimized sticky elements */
@media (max-width: 991.98px) {
    .sticky-top {
        position: static !important;
    }
}

/* Form Styles */
.form-control {
    border-radius: 0;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-select {
    border-radius: 0;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
}

/* Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.7);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Speakable Content */
.speakable-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin: 30px 0;
}

/* Mobile Responsive - Mobile First Approach */

/* Hero Query Form Styles */
.hero-query-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-query-form .nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    margin: 0 5px;
}

.hero-query-form .nav-pills .nav-link.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.hero-query-form .nav-pills .nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-form .form-control,
.hero-form .form-select {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 15px;
    font-size: 14px;
}

.hero-form .form-control:focus,
.hero-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
    background: rgba(255, 255, 255, 0.95);
}

.hero-form .btn-success,
.hero-form .get-quote-btn {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

.hero-form .btn-success *,
.hero-form .get-quote-btn *,
.hero-form .btn-success .btn-text,
.hero-form .get-quote-btn .btn-text {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.hero-form .btn-success i,
.hero-form .get-quote-btn i {
    color: #ffffff !important;
}

/* Consent section styling */
.consent-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.consent-section .form-check {
    margin-bottom: 8px !important;
}

.consent-section .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.consent-section .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.consent-section .form-check-label {
    font-size: 12px;
    line-height: 1.3;
    margin-left: 5px;
}

/* Thank you message styling */
.thank-you-message {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.hero-form .btn-success:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.hero-form .btn-success:focus,
.hero-form .btn-success:active {
    background: #1e7e34 !important;
    border-color: #1c7430 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Ensure consistent green styling across all screen sizes */
@media (max-width: 1200px) {
    .hero-form .btn-success {
        background: #28a745 !important;
        border-color: #28a745 !important;
        color: #ffffff !important;
    }
}

@media (max-width: 992px) {
    .hero-form .btn-success {
        background: #28a745 !important;
        border-color: #28a745 !important;
        color: #ffffff !important;
    }
}

@media (max-width: 768px) {
    .hero-form .btn-success {
        background: #28a745 !important;
        border-color: #28a745 !important;
        color: #ffffff !important;
    }
}

@media (max-width: 576px) {
    .hero-form .btn-success {
        background: #28a745 !important;
        border-color: #28a745 !important;
        color: #ffffff !important;
    }
}

/* Form Select Wrapper with Icons */
.form-select-wrapper {
    position: relative;
}

.form-select-wrapper .form-select {
    appearance: none;
    background-image: none;
    padding-right: 35px;
}

.form-select-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    font-size: 12px;
}

/* Date Input Wrapper */
.date-input-wrapper {
    position: relative;
    cursor: pointer;
}

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

.date-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 10;
}

.date-input-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    font-size: 12px;
}

/* Hero Call Button Mobile Responsive */
@media (max-width: 767.98px) {
    .hero-content .btn-warning {
        font-size: 1rem;
        padding: 10px 20px;
        width: 100%;
        margin-top: 1rem;
    }
    
    .hero-query-form {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .hero-query-form .nav-pills .nav-link {
        margin: 2px 0;
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .hero-form .row > div {
        margin-bottom: 10px;
    }
    
    .hero-form .form-control,
    .hero-form .form-select,
    .hero-form .btn {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Stack form fields vertically on mobile */
    .hero-form .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mobile phones (up to 575px) */
@media (max-width: 575.98px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: 300px;
    }
    
    .display-4 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .fs-5 {
        font-size: 1rem !important;
    }
    
    /* Ensure content and sidebar stack properly */
    .content-72,
    .sidebar-28 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Mobile-optimized cards */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Mobile form optimization */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    /* Mobile button optimization */
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    /* Mobile hero phone number */
    .hero-content .fs-5 {
        font-size: 0.9rem !important;
    }
}

/* Small tablets (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        padding-top: 65px;
    }
    
    .hero-section {
        padding: 2.5rem 0;
        min-height: 350px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Tablet layout - still stack content */
    .content-72,
    .sidebar-28 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Large tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 400px;
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    /* On tablets, still stack but with better spacing */
    .content-72,
    .sidebar-28 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Sidebar appears below content on tablets */
    .sidebar-28 {
        margin-top: 2rem;
        order: 2;
    }
    
}

/* Desktop (992px and up) - Original sidebar layout */
@media (min-width: 992px) {
    .hero-section {
        min-height: 450px;
        padding: 4rem 0;
    }
    
    /* Desktop maintains sidebar layout */
    .sidebar-28 {
        flex: 0 0 28%;
        max-width: 28%;
    }
    
    .content-72 {
        flex: 0 0 72%;
        max-width: 72%;
    }
}

/* Large desktop optimization (1200px and up) */
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1200px;
    }
    
    .hero-section {
        min-height: 500px;
    }
}

/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1320px;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Custom Utilities */
.text-cruise-blue { color: var(--primary-color); }
.text-cruise-green { color: var(--secondary-color); }
.text-cruise-gold { color: var(--accent-color); }
.bg-cruise-light { background-color: var(--bg-light); }

/* Print Styles */
@media print {
    .navbar, footer, .sticky-top, .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #006400;
        --text-dark: #000000;
        --border-color: #000000;
    }
    
    .card {
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Container Improvements */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Mobile-friendly table responsive */
.table-responsive {
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .table-responsive {
        font-size: 0.75rem;
    }
}

/* Responsive images */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Mobile spacing utilities */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

@media (min-width: 1200px) {
    .display-4 {
        font-size: 2.5rem !important;
    }
}
.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgb(22 55 103) !important;
}

.hero-query-form .nav-pills .nav-link.active {
    background: #4f79b5 !important;
    color: white !important;
    border-color: #163767 !important;
}

.hero-form .btn-success, .hero-form .get-quote-btn {
    background: #f69f0c !important;
    border-color: #f69f0c !important;}

.text-white-50 {
    --bs-text-opacity: 1;
    color: rgb(255 255 255) !important;
}
.consent-section .form-check-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgb(255 255 255) !important;
}

.btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    display: none !important;}
.mobile-query-btn {
        display: none !important;}
        
.bg-gradient {background-image: url(https://cruisebookusa.com/assets/images/cruise-hero.jpg) !important;}
        
 @media (max-width: 991.98px) {
  .mobile-query-btn {
    display: none !important;
  }
}       
