/* Custom CSS Variables for Color Palette */
:root {
    --primary: #0052A3;
    --secondary: #D4002E;
    --accent: #28A745;
    --light: #F8F9FA;
    --dark: #212529;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --text-primary: #333333;
    --text-secondary: #6C757D;
    --text-muted: #9CA3AF;
    --border-color: #E9ECEF;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-sm: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Bootstrap Color Overrides */
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.btn-primary { 
    background-color: var(--primary); 
    border-color: var(--primary); 
}
.btn-primary:hover { 
    background-color: #003F7F; 
    border-color: #003F7F; 
}
.btn-outline-primary { 
    color: var(--primary); 
    border-color: var(--primary); 
}
.btn-outline-primary:hover { 
    background-color: var(--primary); 
    border-color: var(--primary); 
}

.bg-secondary { background-color: var(--secondary) !important; }
.text-secondary { color: var(--secondary) !important; }
.btn-secondary { 
    background-color: var(--secondary); 
    border-color: var(--secondary); 
}

.bg-accent { background-color: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }

/* Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Hero Section with UK Flag Diagonal Overlay */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--primary) 40%, 
        var(--secondary) 40%, 
        var(--secondary) 42%, 
        var(--white) 42%, 
        var(--white) 44%, 
        var(--secondary) 44%, 
        var(--secondary) 46%, 
        var(--primary) 46%, 
        var(--primary) 100%);
    background-size: 20px 20px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 82, 163, 0.95) 0%, 
        rgba(0, 82, 163, 0.85) 100%);
    z-index: 1;
}

.hero-section .container-xl {
    position: relative;
    z-index: 2;
}

.min-vh-60 {
    min-height: 60vh;
}

/* Navigation */
.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar {
    box-shadow: var(--shadow-sm);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.stripe-payment-link {
    position: relative;
    overflow: hidden;
}

.stripe-payment-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.stripe-payment-link:hover::before {
    left: 100%;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 1.5rem;
}

/* Icon Circles */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.testimonial-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 82, 163, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 82, 163, 0.25);
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #D4F6DD;
    color: #155724;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
}

.alert-info {
    background-color: #CCE7FF;
    color: #004085;
}

/* Accordion */
.accordion-button {
    background-color: var(--white);
    border: none;
    font-weight: 500;
    padding: 1rem 1.5rem;
}

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

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 82, 163, 0.25);
}

/* Footer */
footer {
    background-color: var(--dark) !important;
    color: var(--white);
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary);
}

/* Google Translate Widget Styling */
#google_translate_element {
    margin-top: 1rem;
}

#google_translate_element select {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark);
    color: var(--white);
    padding: 1rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 1px solid var(--text-primary);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Print styles */
@media print {
    .navbar,
    .cookie-consent,
    .btn,
    #google_translate_element {
        display: none !important;
    }
    
    .hero-section {
        background: var(--primary) !important;
        color: var(--white) !important;
    }
    
    a {
        color: var(--text-primary) !important;
        text-decoration: underline !important;
    }
}
