/* ==========================================================================
   Variables - Color Palette
   ========================================================================== */
:root {
    --primary-red: #c41230;
    --light-red: #e63946;
    --dark-red: #9d0e28;
    --dark-grey: #333333;
    --light-grey: #f1f1f1;
    --beige: #f5e6ca;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body { 
    font-family: 'Arial', sans-serif;
    background-color: var(--light-grey);
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 3px solid var(--primary-red);
}

.logo-container {
    /* Centered logo positioning */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    margin: 0px 0px;
}

.header-content {
    /* Container for header elements */
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 30px;
    position: relative;
}

.logo-center {
    /* Alternative logo positioning for responsive layouts */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    margin: 0 auto;
}

.header img {
    max-height: 70px;
    width: auto;
    transition: all 0.3s ease;
    margin: 5px 5px;
}

.header-title {
    /* Header title - hidden on mobile, visible on larger screens */
    color: var(--dark-grey);
    font-size: 1.5rem;
    font-weight: 600;
    display: none;
    margin-left: 15px;
    line-height: 60px;
    align-self: center;
    text-align: center;
}

/* ==========================================================================
   Login Form Styles
   ========================================================================== */
.login-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    padding: 30px;
    margin: 40px auto;
}

.form-group label {
    color: var(--dark-grey);
    font-weight: 500;
}

.form-control:focus {
    /* Custom focus state for form inputs */
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(196, 18, 48, 0.25);
}

.btn-primary {
    /* Primary action button styling */
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    width: 100%;
    padding: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
}

.alert-danger {
    /* Error message styling */
    background-color: rgba(196, 18, 48, 0.1);
    border-color: var(--primary-red);
    color: var(--primary-red);
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 0 5px rgba(196, 18, 48, 0.2);
}

/* ==========================================================================
   Mobile Responsive Styles
   ========================================================================== */
@media (max-width: 576px) {
    /* Small devices (phones) */
    .login-container {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .header {
        padding: 10px;
    }
    
    .header img {
        max-height: 40px;
    }
}

@media (min-width: 768px) {
    /* Medium devices (tablets and up) */
    .header-title {
        display: block;
    }
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */
.header-nav {
    display: none;
}

.nav-link {
    color: var(--dark-grey);
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-red);
}

/* ==========================================================================
   Contact Information Styles
   ========================================================================== */
.contact-info {
    /* Contact information - hidden on mobile */
    display: none;
    margin-right: 20px;
}

.contact-item {
    font-size: 0.9rem;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-red);
    margin-right: 5px;
}

.contact-value {
    color: var(--dark-grey);
}

@media (min-width: 768px) {
    /* Show contact info on tablet and larger */
    .contact-info {
        display: block;
    }
}

/* ==========================================================================
   Language Selection Styles
   ========================================================================== */
.language-btn {
    /* Language selection button positioning */
    margin-right: 0;
    margin-left: auto;
    border: 1px solid #ddd;
    background-color: transparent;
    color: var(--dark-grey);
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
    cursor: pointer;
    transition: all 0.2s;
    position: absolute;
    right: 30px;
}

/* ==========================================================================
   Service Selection Styles
   ========================================================================== */
.service-selection {
    margin-bottom: 20px;
}

.service-option {
    /* Custom radio button styling */
    display: inline-block;
    margin-right: 15px;
}

.service-option input[type="radio"] {
    /* Hide default radio button */
    margin-right: 5px;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-selection label {
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    color: var(--dark-grey);
}

.service-selection {
    /* Centered service option container */
    margin-bottom: 25px;
    text-align: center;
}

.service-selection > label {
    /* Service option label styling */
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
    color: var(--dark-grey);
    text-align: center;
}

.service-options-container {
    /* Flex container for service options */
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.service-option {
    position: relative;
    display: flex;
    align-items: center;
}

.service-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-option label {
    /* Custom radio button appearance */
    display: inline-block;
    padding: 8px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-weight: 500;
    color: var(--dark-grey);
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option input[type="radio"]:checked + label {
    /* Selected radio button state */
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.service-option input[type="radio"]:focus + label {
    /* Focus state for accessibility */
    box-shadow: 0 0 0 2px rgba(196, 18, 48, 0.25);
}

.service-option label:hover {
    /* Hover effect for radio labels */
    border-color: var(--primary-red);
    background-color: rgba(196, 18, 48, 0.05);
}

.service-option input[type="radio"]:checked + label:hover {
    /* Selected radio button hover state */
    background-color: var(--dark-red);
}

.disabled-option {
    /* Styling for disabled options */
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Language Dropdown Styles
   ========================================================================== */
.language-dropdown {
    /* Language dropdown container */
    position: relative;
}

.language-selected {
    /* Current language display */
    display: flex;
    align-items: center;
    padding: 1px 4px;
    border: 1px solid #ddd;
    border-radius: 2px;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    font-size: 0.9rem;
}

.language-selected:hover {
    /* Hover effect for selected language */
    text-decoration: none;
    color: #333;
    background-color: #f5f5f5;
}

.flag-icon {
    /* Flag icon sizing */
    width: 8px;
    height: auto;
    margin-right: 3px;
}

.language-dropdown-menu {
    /* Dropdown menu positioning and styling */
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    margin-top: 2px;
}

.language-dropdown:hover .language-dropdown-menu {
    /* Show dropdown on hover */
    display: block;
}

.language-item {
    /* Individual language option styling */
    display: flex;
    align-items: center;
    padding: 2px 7px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    min-height: 10px;
    line-height: 1;
}

.language-item:hover {
    /* Hover effect for language items */
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
}

/* ==========================================================================
   Additional Mobile Responsive Styles
   ========================================================================== */
@media (max-width: 576px) {
    /* Mobile-specific adjustments */
    .login-container {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .header {
        padding: 10px;
    }
    
    .header img {
        max-height: 40px;
    }
    
    .language-selected span {
        display: none;
    }
    
    .language-selected .flag-icon {
        margin-right: 0;
        width: 14px;
    }
    
    .language-dropdown-menu {
        right: -10px;
    }
    
    .language-item .flag-icon {
        width: 14px;
    }
}

@media (min-width: 768px) {
    /* Tablet and desktop specific styles */
    .header-title {
        display: block;
    }
}

/* ==========================================================================
   Utility Classes for Sizing
   ========================================================================== */
.small {
    /* Small size utility class */
    width: 30px !important;
    height: auto !important;
    font-size: 0.9rem !important;
}

.very-small {
    /* Very small size utility class */
    width: 12px !important;
    height: auto !important;
    font-size: 0.65rem !important;
}

.extra-small {
    /* Extra small size utility class */
    width: 10px !important;
    height: auto !important;
    font-size: 0.6rem !important;
}

.micro {
    /* Micro size utility class */
    width: 8px !important;
    height: auto !important;
    font-size: 0.55rem !important;
}

/* Flag icon specific sizing */
.flag-icon.small {
    width: 45px !important;
}

.flag-icon.very-small {
    width: 12px !important;
}

.flag-icon.extra-small {
    width: 10px !important;
}

.flag-icon.micro {
    width: 8px !important;
}

/* ==========================================================================
   Mobile-specific Button and Control Styles
   ========================================================================== */
@media (max-width: 576px) {
    /* Hide text in buttons on small screens */
    .btn-info.btn-sm span {
        display: none;
    }
    
    .language-selected span,
    .language-selected .fa-caret-down {
        display: none;
    }
    
    .language-selected {
        padding: 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .language-selected .flag-icon {
        margin-right: 0;
    }
    
    .btn-danger.btn-sm span {
        display: none;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
    }

    .user-controls {
        gap: 5px;
        display: flex;
        align-items: center;
    }
    
    .language-dropdown-menu {
        right: 0;
        left: auto;
    }
}

/* ==========================================================================
   Cookie Consent Banner Styles
   ========================================================================== */
.cookie-consent {
    /* Fixed position banner at bottom of screen */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}
.cookie-consent p {
    margin: 0 0 10px;
    font-size: 14px;
}
.cookie-consent form {
    display: inline-block;
}
.cookie-consent button {
    /* Cookie consent action button */
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.cookie-consent button:hover {
    background: #c41c1c;
}
@media (max-width: 768px) {
    /* Mobile-specific cookie consent styling */
    .cookie-consent {
        padding: 10px;
    }
    .cookie-consent p {
        font-size: 12px;
    }
}