/* ==============================================================================
   CONTACT & WINTER SERVICE PAGE STYLES
   Extracted from main.css lines ~4056-5548
   ============================================================================== */

/* ==============================================================================
   FORM MESSAGES (Success / Error Alerts)
   ============================================================================== */

.form-messages {
    margin-bottom: 1.5rem;
}

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.form-alert-success {
    background: rgba(105, 190, 40, 0.12);
    color: var(--fosseway-green);
    border: 1px solid rgba(105, 190, 40, 0.3);
}

.form-alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

.field-error {
    display: block;
    color: #e74c3c;
    font-size: 0.82rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* ==============================================================================
   CONTACT PAGE STYLES
   ============================================================================== */

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001a33 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.contact-hero h1 {
    margin-bottom: var(--spacing-xs);
    color: white;
    font-size: 2.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.85;
    margin: 0;
    color: var(--fosseway-grey);
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .contact-section {
        padding-top: 0;
    }
}

/* Contact Layout - 2 Column */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-md);
    align-items: stretch;
}

/* Form Card */
.form-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-card .contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-card .contact-form .btn-submit {
    margin-top: auto;
}

.form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(105, 190, 40, 0.1);
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
    color: var(--fosseway-green);
}

.form-card h2 {
    color: var(--fosseway-navy);
    margin-bottom: var(--spacing-xs);
    font-size: 2rem;
    font-weight: 700;
}

.form-subtitle {
    color: var(--fosseway-grey);
    margin-bottom: var(--spacing-lg);
    font-size: 1.05rem;
}

/* Contact Form */
.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-sm);
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--fosseway-dark-grey);
    margin-bottom: var(--spacing-xs);
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 1rem var(--spacing-sm);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--fosseway-navy);
    box-shadow: 0 0 0 3px rgba(0, 34, 68, 0.1);
    background-color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--fosseway-grey);
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--fosseway-navy);
    color: white;
    padding: 1rem var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--spacing-md);
}

.btn-submit:hover {
    background-color: var(--fosseway-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Info Boxes */
.contact-info-boxes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    height: 100%;
}

.info-box {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.info-box h3 {
    color: var(--fosseway-navy);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--spacing-sm) 0;
}

.info-box p {
    color: var(--fosseway-grey);
    font-size: 1.05rem;
    margin: 0;
}

.info-box-phone {
    display: block;
    color: var(--fosseway-navy);
    font-size: 2.25rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.02em;
}

.info-box-link {
    display: block;
    color: var(--fosseway-green);
    font-weight: 600;
    font-size: 1.4rem;
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.info-box-link:hover {
    color: var(--fosseway-navy);
}

.info-box-location {
    color: var(--fosseway-navy) !important;
    font-size: 2rem !important;
    font-weight: 700;
    margin-bottom: var(--spacing-sm) !important;
}

/* Highlighted box (navy) */
.info-box-highlight {
    background-color: var(--fosseway-navy);
    border: none;
}

.info-box-highlight h3 {
    color: rgba(255, 255, 255, 0.7);
}

.info-box-highlight p {
    color: rgba(255, 255, 255, 0.6);
}

.info-box-highlight .info-box-phone {
    color: white;
}

/* Contact Page Responsive */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-info-boxes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        order: -1;
    }

    .info-box {
        padding: var(--spacing-md);
    }

    .info-box-phone {
        font-size: 1.5rem;
    }

    .info-box-link {
        font-size: 1rem;
    }

    .info-box-location {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: var(--spacing-md) 0;
    }

    .contact-layout {
        gap: var(--spacing-sm);
    }

    .contact-info-boxes {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .info-box {
        padding: var(--spacing-md);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .info-box h3 {
        margin: 0 0 var(--spacing-xs) 0;
        font-size: 0.8rem;
    }

    .info-box p {
        font-size: 0.9rem;
        margin: 0;
        color: var(--fosseway-grey);
    }

    .info-box-phone {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-xs);
    }

    .info-box-link {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
        word-break: normal;
    }

    .info-box-location {
        font-size: 1.5rem !important;
        margin-bottom: var(--spacing-xs) !important;
    }

    .info-box-highlight {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .info-box-highlight .info-box-phone {
        font-size: 2rem;
    }

    .form-card {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }

    .form-card h2 {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form .form-group {
        margin-bottom: var(--spacing-sm);
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.875rem var(--spacing-sm);
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    .contact-form textarea {
        min-height: 120px;
    }

    .btn-submit {
        padding: 1rem;
        font-size: 1rem;
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: var(--spacing-sm) 0;
    }

    .contact-section .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .form-card {
        padding: var(--spacing-sm);
    }

    .form-card h2 {
        font-size: 1.3rem;
    }

    .info-box {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }

    .info-box h3 {
        font-size: 0.75rem;
    }

    .info-box-phone {
        font-size: 1.5rem;
    }

    .info-box-link {
        font-size: 1rem;
    }

    .info-box-location {
        font-size: 1.25rem !important;
    }

    .info-box-highlight .info-box-phone {
        font-size: 1.75rem;
    }
}

/* ==============================================================================
   WINTER SERVICE PAGE STYLES
   ============================================================================== */

/* ===== WINTER SERVICE HERO - MODERN ===== */
.winter-hero-modern {
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d2847 100%);
    padding: 5rem 0 3rem;
    overflow: hidden;
    color: white;
}

.winter-hero-bg {
    display: none;
}

.winter-hero-modern .container {
    position: relative;
    z-index: 1;
}

.winter-hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}

.winter-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #7dd3fc;
    margin-bottom: 1.5rem;
}

.winter-hero-badge svg {
    color: #7dd3fc;
}

.winter-hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.winter-hero-text h1 span {
    color: #7dd3fc;
}

.winter-hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
}

.winter-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.winter-hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.01em;
}

.winter-hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa523 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(105, 190, 40, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.winter-hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #7acc3a 0%, var(--fosseway-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 190, 40, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.winter-hero-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(105, 190, 40, 0.3);
}

.winter-hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.winter-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.winter-hero-actions .btn-outline-light:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.2);
}

/* Winter Hero Card */
.winter-hero-card {
    position: relative;
}

.winter-card-inner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.winter-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.winter-card-icon svg {
    color: #7dd3fc;
}

.winter-card-inner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.winter-card-inner>p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.winter-card-inner strong {
    color: #7dd3fc;
}

.winter-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.winter-card-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.winter-card-features svg {
    color: #4ade80;
    flex-shrink: 0;
}

/* Winter Stats Bar */
.winter-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.winter-stat {
    text-align: center;
}

.winter-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #7dd3fc;
    margin-bottom: 0.25rem;
}

.winter-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Winter Hero Responsive */
@media (max-width: 992px) {
    .winter-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .winter-hero-text h1 {
        font-size: 2.75rem;
    }

    .winter-hero-card {
        max-width: 480px;
    }

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

@media (max-width: 576px) {
    .winter-hero-modern {
        padding: 3rem 0 2rem;
    }

    .winter-hero-card {
        display: none;
    }

    .winter-hero-text {
        text-align: center;
    }

    .winter-hero-text h1 {
        font-size: 2rem;
    }

    .winter-hero-text h1 span {
        display: inline;
    }

    .winter-hero-desc {
        font-size: 1.1rem;
    }

    .winter-hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .winter-hero-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    .winter-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .winter-stat-number {
        font-size: 1.35rem;
    }
}

/* ==============================================================================
   WINTER UNITS SECTION (Gritting Units)
   ============================================================================== */

.winter-units {
    padding: 3rem 0;
    background-color: white;
}

.units-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.units-header h2 {
    color: var(--fosseway-navy);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.units-header p {
    color: #64748b;
    font-size: 1.15rem;
}

/* ===== TAB NAVIGATION - ENHANCED FILTER ===== */
.units-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fosseway-green), #8ed654);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.08) 0%, rgba(105, 190, 40, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-btn>* {
    position: relative;
    z-index: 1;
}

.tab-btn svg {
    width: 28px;
    height: 28px;
    color: #94a3b8;
    transition: all 0.3s ease;
    padding: 0.35rem;
    background: rgba(0, 34, 68, 0.04);
    border-radius: 10px;
}

.tab-btn span {
    font-weight: 700;
    color: var(--fosseway-navy);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.tab-btn small {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 34, 68, 0.1);
}

.tab-btn:hover::after {
    opacity: 1;
}

.tab-btn:hover svg {
    color: var(--fosseway-green);
    background: rgba(105, 190, 40, 0.12);
}

.tab-btn:hover span {
    color: var(--fosseway-navy);
}

/* Active Tab State */
.tab-btn.active {
    background: white;
    border-color: var(--fosseway-green);
    box-shadow: 0 8px 32px rgba(105, 190, 40, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active::before {
    transform: scaleX(1);
}

.tab-btn.active::after {
    opacity: 1;
}

.tab-btn.active svg {
    color: white;
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa820 100%);
    box-shadow: 0 2px 8px rgba(105, 190, 40, 0.3);
}

.tab-btn.active span {
    color: var(--fosseway-green);
}

.tab-btn.active small {
    color: #64748b;
}

/* Tab Content */
.tab-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* Row layouts for operator units */
.units-row-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.units-row-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.endorsements-centered {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.endorsements-centered .unit-card {
    flex: 0 1 400px;
    max-width: 400px;
}

@media (max-width: 768px) {
    .units-row-2x2 {
        grid-template-columns: 1fr;
    }

    .endorsements-centered {
        flex-direction: column;
        align-items: center;
    }

    .endorsements-centered .unit-card {
        max-width: 100%;
        width: 100%;
    }

    .unit-card:hover {
        transform: none;
    }

    .unit-card:hover::before {
        opacity: 0;
    }
}

/* ===== ACCORDION FUNCTIONALITY ===== */
.unit-accordion {
    overflow: hidden;
    cursor: pointer;
}

.unit-accordion-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 1rem;
}

.unit-accordion-header:hover .accordion-chevron {
    color: var(--fosseway-green);
}

.unit-header-content {
    flex: 1;
}

.unit-header-content h3 {
    margin-bottom: 0;
    transition: color 0.2s ease;
}

.unit-accordion-header:hover .unit-header-content h3 {
    color: var(--fosseway-green);
}

.unit-card-highlight .unit-accordion-header:hover .unit-header-content h3 {
    color: var(--fosseway-green);
}

.accordion-chevron {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 0.25rem;
    padding: 0.35rem;
    border-radius: 8px;
    background: rgba(0, 34, 68, 0.04);
}

.unit-card:hover .accordion-chevron {
    background: rgba(0, 34, 68, 0.08);
}

.unit-card-highlight .accordion-chevron {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.unit-card-highlight:hover .accordion-chevron {
    background: rgba(255, 255, 255, 0.15);
}

.unit-accordion.accordion-open .accordion-chevron {
    transform: rotate(180deg);
    background: rgba(105, 190, 40, 0.15);
    color: var(--fosseway-green);
}

.unit-card-highlight.accordion-open .accordion-chevron {
    background: rgba(105, 190, 40, 0.2);
    color: var(--fosseway-green);
}

.unit-accordion-content {
    display: none;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 34, 68, 0.08);
    margin-top: 1.25rem;
}

.unit-accordion-content p:last-child {
    margin-bottom: 0;
}

.unit-accordion.accordion-open .unit-accordion-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: accordionSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes accordionSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.unit-detail {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 34, 68, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--fosseway-green);
    font-style: normal;
}

/* ===== ENHANCED UNIT CARDS ===== */
.unit-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fosseway-navy), var(--fosseway-green));
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.unit-card:hover {
    box-shadow: 0 12px 40px rgba(0, 34, 68, 0.12);
    border-color: transparent;
    transform: translateY(-4px);
}

.unit-card:hover::before {
    opacity: 1;
}

.unit-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #003366 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 34, 68, 0.2);
}

.unit-card h3 {
    color: var(--fosseway-navy);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.unit-card h4 {
    color: var(--fosseway-navy);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.unit-card p {
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.unit-licence {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.12) 0%, rgba(105, 190, 40, 0.06) 100%);
    color: #2d6a0f;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(105, 190, 40, 0.2);
}

.unit-licence::before {
    content: '✓';
    font-size: 0.7rem;
}

/* Highlighted Unit Card (Snow Blowers) */
.unit-card-highlight {
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001a33 100%);
    border: none;
    grid-column: 1 / -1;
    box-shadow: 0 8px 32px rgba(0, 34, 68, 0.25);
}

.unit-card-highlight::before {
    background: linear-gradient(90deg, var(--fosseway-green), #8ed654);
    opacity: 1;
}

.unit-card-highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 34, 68, 0.3);
}

.unit-card-highlight .accordion-chevron {
    color: rgba(255, 255, 255, 0.7);
}

.unit-card-highlight .unit-accordion-content {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.unit-category {
    color: var(--fosseway-green);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.unit-card-highlight h3 {
    color: white;
    font-size: 1.25rem;
}

.unit-split {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.unit-split-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.unit-split-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.unit-split-item .unit-number {
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa820 100%);
    box-shadow: 0 2px 8px rgba(105, 190, 40, 0.3);
}

.unit-split-item h4 {
    color: white;
    margin-top: 0.75rem;
    font-size: 1rem;
}

.unit-split-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ===== ENDORSEMENTS INTRO SECTION ===== */
.endorsements-intro {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--fosseway-navy) 0%, #001a33 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.endorsements-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(105, 190, 40, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.endorsements-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fosseway-green), #8ed654, var(--fosseway-green));
}

.endorsements-intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa820 100%);
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(105, 190, 40, 0.3);
}

.endorsements-intro-icon svg {
    color: white;
}

.endorsements-intro-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.endorsements-intro-text h3 {
    color: white;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.endorsements-intro-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== ENDORSEMENTS NOTE - ENHANCED ===== */
.endorsements-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.08) 0%, rgba(105, 190, 40, 0.03) 100%);
    border: 1px solid rgba(105, 190, 40, 0.2);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.endorsements-note::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--fosseway-green), #5aa820);
}

.endorsements-note svg {
    color: white;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa820 100%);
    padding: 6px;
    border-radius: 50%;
    box-sizing: content-box;
    box-shadow: 0 2px 8px rgba(105, 190, 40, 0.3);
}

.endorsements-note p {
    margin: 0;
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.6;
}

.endorsements-note p strong {
    color: var(--fosseway-navy);
    font-weight: 700;
}

/* ===== ENDORSEMENT CARDS - PREMIUM STYLING ===== */
.endorsement-card {
    background: white;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.endorsement-card::before {
    background: linear-gradient(90deg, var(--fosseway-green), #8ed654);
    opacity: 0;
}

.endorsement-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.08) 0%, transparent 60%);
    border-radius: 0 16px 0 100%;
    pointer-events: none;
    transition: all 0.3s ease;
}

.endorsement-card:hover::after {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.12) 0%, transparent 60%);
}

.endorsement-card .unit-number {
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa820 100%);
    box-shadow: 0 3px 12px rgba(105, 190, 40, 0.3);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.endorsement-card h3 {
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.endorsement-card .unit-accordion-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Unit Restriction Badge - Enhanced */
.unit-restriction {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    border: 1px solid #fcd34d;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.2);
}

.unit-restriction::before {
    content: '⚡';
    font-size: 0.8rem;
}

/* ==============================================================================
   WINTER PREREQUISITES SECTION
   ============================================================================== */

.winter-prerequisites {
    padding: var(--spacing-xl) 0;
    background-color: #f8f9fa;
}

.prerequisites-content h2 {
    color: var(--fosseway-navy);
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.prerequisites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.prerequisite-item {
    display: flex;
    gap: var(--spacing-sm);
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid #e5e7eb;
}

.prerequisite-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(105, 190, 40, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--fosseway-green);
}

.prerequisite-text h3 {
    color: var(--fosseway-navy);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.prerequisite-text p {
    color: var(--fosseway-grey);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ==============================================================================
   WINTER CTA SECTION - MODERN
   ============================================================================== */

.winter-cta-modern {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0c4a6e 0%, #164e63 50%, #0e7490 100%);
    overflow: hidden;
}

.winter-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Animated Snowflakes */
.snowflake {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: snowfall 8s linear infinite;
    opacity: 0.4;
}

.sf-1 {
    left: 10%;
    animation-delay: 0s;
    width: 15px;
    height: 15px;
}

.sf-2 {
    left: 30%;
    animation-delay: 2s;
    width: 10px;
    height: 10px;
}

.sf-3 {
    left: 50%;
    animation-delay: 4s;
    width: 18px;
    height: 18px;
}

.sf-4 {
    left: 70%;
    animation-delay: 1s;
    width: 12px;
    height: 12px;
}

.sf-5 {
    left: 90%;
    animation-delay: 3s;
    width: 16px;
    height: 16px;
}

@keyframes snowfall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(400px) rotate(360deg);
        opacity: 0;
    }
}

.winter-cta-modern .container {
    position: relative;
    z-index: 1;
}

.winter-cta-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.winter-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fef3c7;
    margin-bottom: 1.5rem;
}

.winter-cta-badge svg {
    color: #fef3c7;
}

.winter-cta-wrapper h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.winter-cta-wrapper>p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.winter-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-cta-winter {
    background: linear-gradient(135deg, var(--fosseway-green), #5aa820);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(105, 190, 40, 0.4);
}

.btn-cta-winter:hover {
    background: linear-gradient(135deg, #5aa820, #4a9018);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 190, 40, 0.5);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.winter-cta-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==============================================================================
   RESPONSIVE STYLES - CONTACT & WINTER
   ============================================================================== */

@media (max-width: 992px) {
    .units-tabs {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        border-radius: 16px;
        gap: 0.5rem;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 34, 68, 0.08);
    }

    .tab-btn {
        width: 100%;
        max-width: none;
        min-width: auto;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 1rem 1rem;
        gap: 0.875rem;
        border-radius: 12px;
        border: 2px solid transparent;
        background: #f8fafc;
    }

    .tab-btn:hover {
        transform: none;
        background: #f1f5f9;
    }

    .tab-btn svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        padding: 0.25rem;
    }

    .tab-btn span {
        flex: 1;
        font-size: 0.9rem;
    }

    .tab-btn small {
        margin-left: auto;
        background: rgba(0, 34, 68, 0.06);
        padding: 0.3rem 0.65rem;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .tab-btn.active {
        background: linear-gradient(135deg, rgba(105, 190, 40, 0.08) 0%, rgba(105, 190, 40, 0.03) 100%);
        border-color: var(--fosseway-green);
        transform: none;
        box-shadow: 0 2px 12px rgba(105, 190, 40, 0.15);
    }

    .tab-btn.active::before {
        display: none;
    }

    .tab-btn.active small {
        background: var(--fosseway-green);
        color: white;
    }

    .unit-split {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .winter-cta-modern {
        padding: 3.5rem 0;
    }

    .winter-cta-wrapper h2 {
        font-size: 2rem;
    }

    .winter-cta-wrapper>p {
        font-size: 1.05rem;
    }

    .winter-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-winter,
    .btn-cta-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .winter-units {
        padding: 2.5rem 0;
    }

    .units-header {
        margin-bottom: 1.5rem;
    }

    .units-header h2 {
        font-size: 1.5rem;
    }

    .units-header p {
        font-size: 0.95rem;
    }

    .units-tabs {
        padding: 0.375rem;
        gap: 0.375rem;
        border-radius: 14px;
    }

    .tab-btn {
        padding: 0.875rem 0.875rem;
        gap: 0.75rem;
        border-radius: 10px;
    }

    .tab-btn svg {
        width: 20px;
        height: 20px;
    }

    .tab-btn span {
        font-size: 0.85rem;
    }

    .tab-btn small {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ==============================================================================
   ROLE TABS (Course Units Selector)
   ============================================================================== */

.role-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
}

.role-tab-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    flex: 0 1 380px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.role-tab-btn:hover {
    border-color: var(--fosseway-green);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.role-tab-btn.active {
    border-color: var(--fosseway-green);
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.08) 0%, rgba(105, 190, 40, 0.03) 100%);
    box-shadow: 0 0 0 4px rgba(105, 190, 40, 0.12),
        0 8px 25px rgba(105, 190, 40, 0.15);
}

.role-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.08) 0%, rgba(0, 34, 68, 0.04) 100%);
    border-radius: 14px;
    color: var(--fosseway-navy);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-tab-btn.active .role-tab-icon {
    background: linear-gradient(135deg, var(--fosseway-green) 0%, #5aa523 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(105, 190, 40, 0.35);
}

.role-tab-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fosseway-navy);
    margin-bottom: 0.35rem;
}

.role-tab-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Role Content */
.role-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.role-content {
    display: none;
}

.role-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.role-content-layout {
    display: block;
}

.units-list-section {
    max-width: 800px;
    margin: 0 auto;
}

.units-list-section .units-group-header {
    text-align: center;
    margin-bottom: 2rem;
}

.units-list-section .units-group-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fosseway-navy);
    margin-bottom: 0.5rem;
}

.units-list-section .units-group-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Role Tabs Responsive */
@media (max-width: 768px) {
    .role-tabs {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .role-tab-btn {
        flex: 1;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }

    .role-tab-icon {
        width: 50px;
        height: 50px;
    }

    .role-tab-content h3 {
        font-size: 1.15rem;
    }

    .role-tab-content p {
        font-size: 0.85rem;
    }
}