/**
 * Carbon Calculator Frontend Styles
 * Updated to match complete Zeplin Design Specification
 * Typography: Matches Freightliner theme Helvetica Neue variants
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Typography Base - Freightliner Theme Font Families */
/* These match the @font-face definitions in the Freightliner theme */

/* Global Typography - Critical Elements */
.fcc-journey-label,
.fcc-emissions-table th,
.fcc-emissions,
.fcc-enquiry-btn,
.fcc-enquiry-modal .gfield_label,
.fcc-enquiry-modal .gform_title {
    font-weight: 400;
}

.fcc-enquiry-title,
.fcc-journey-modal .fcc-modal-title {
    font-weight: 400;
}

.fcc-rail-step,
.fcc-journey-value,
.fcc-emissions-table td,
.fcc-enquiry-text,
.fcc-disclaimers p,
.fcc-enquiry-modal .gform_wrapper input[type="text"],
.fcc-enquiry-modal .gform_wrapper input[type="email"],
.fcc-enquiry-modal .gform_wrapper input[type="tel"],
.fcc-enquiry-modal .gform_wrapper textarea {
    font-weight: 400;
}

/* Container Styles */
.fcc-calculator-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    background: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* Hero Section - Desktop */
.fcc-hero-title {
    font-size: 60px;
    font-weight: 400;
    line-height: 68px;
    color: #000000;
    text-align: center;
    margin: 0 0 32px 0;
    font-family: 'helveticaneueblackcond', Arial, Helvetica, sans-serif;
}

.fcc-hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    text-align: center;
    margin: 0 0 24px 0;
}

/* Section Headers */
.fcc-section-header {
    font-size: 24px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin: 0 0 16px 0;
}

.fcc-subsection-header {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin: 0 0 12px 0;
}

.fcc-shortcode-container {
    margin: 0;
}


/* Main Layout */
.fcc-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
}

.fcc-step-1-layout .fcc-main-layout {
    align-items: center;
}

.fcc-form-section {
    background: #ffffff;
}

.fcc-info-section {
    background: #ffffff;
    padding-left: 40px;
}

/* Step Panel Styles */
.fcc-step-panel {
    background: #FFFFFF;
    margin-bottom: 0;
}

.fcc-step-panel--active {
    background: #000000;
    color: #ffffff;
}

.fcc-step-panel--collapsed {
    background: #F2F2F2;
    color: #000000;
}

.fcc-step-header {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    gap: 12px;
}

.fcc-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.fcc-step-number--active {
    background: #FE8D00;
    color: #000000;
    border: 1px solid #000000;
}

.fcc-step-number--inactive {
    background: transparent;
    color: #000000;
    border: 1px solid #000000;
}

.fcc-step-title {
    font-size: 30px;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
    text-transform: uppercase;
    font-family: 'helveticaneueblackcond', Arial, Helvetica, sans-serif;
}

.fcc-step-spacer {
    flex: 1;
}

.fcc-step-toggle {
    background: none;
    border: none;
    color: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: opacity 0.2s ease;
}

.fcc-step-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.fcc-step-content {
    background: #FFFFFF;
    padding: 32px;
}


/* Form Styles */
.fcc-calculator-form {
    padding: 0;
    border: none;
}

.fcc-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fcc-form-row {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

.fcc-form-row--split {
    gap: 48px;
}

.fcc-form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fcc-form-group--number {
    max-width: 213px;
}

.fcc-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'helveticaneuebold', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin-bottom: 16px;
}

.fcc-required-indicator {
    color: #C41100;
    font-size: 16px;
    line-height: 24px;
}

.fcc-info-icon {
    width: 16px;
    height: 16px;
    color: #656565;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.fcc-info-icon:hover,
.fcc-info-icon.active {
    color: #000000;
}

.fcc-info-icon--solid {
    color: #656565;
    cursor: pointer;
    transition: color 0.2s ease;
}

.fcc-info-icon--solid:hover,
.fcc-info-icon--solid.active {
    color: #000000;
}

/* New SVG icon states - outlined by default, filled on hover/active */
.fcc-info-icon g {
    fill: currentColor;
}

.fcc-info-icon:hover g,
.fcc-info-icon.active g {
    fill: #000000;
}

/* Ensure info icons are clickable */
.fcc-info-icon {
    pointer-events: auto;
}

/* Disable body scrolling when modal is open */
body.fcc-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.fcc-postcode-input,
.fcc-number-input {
    width: 100%;
    height: 44px;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    transition: border-color 0.2s ease;
}

.fcc-postcode-input:focus,
.fcc-number-input:focus {
    outline: none;
    border-color: #FE8D00;
    border-width: 2px;
}

.fcc-number-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fcc-help-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #656565;
    margin-top: 8px;
}

.fcc-field-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.fcc-field-arrow svg {
    width: 100px;
    height: 100px;
}

/* Checkbox Styles */
.fcc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
}

.fcc-checkbox input[type="checkbox"] {
    display: none;
}

.fcc-checkbox-mark {
    width: 24px;
    height: 24px;
    border: 1.6px solid #656565;
    border-radius: 6.4px;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.fcc-checkbox input[type="checkbox"]:checked + .fcc-checkbox-mark {
    background: #157E33;
    border-color: #157E33;
}

.fcc-checkbox input[type="checkbox"]:checked + .fcc-checkbox-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
}

.fcc-checkbox-text {
    flex: 1;
    line-height: 24px;
}

/* Required Note */
.fcc-required-note {
    margin-top: 24px;
    display: flex;
    font-family: 'helveticaneuemedium', Arial, Helvetica, sans-serif;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #656565;
}

.fcc-required-asterisk {
    color: #C41100;
    font-size: 14px;
    line-height: 18px;
}

/* How Rail Freight Works Section */
.fcc-how-rail-works {
    padding: 0;
}

.fcc-rail-icon {
    width: 64px;
    height: 64px;
    background-image: url('../../../../../app/plugins/freightliner-carbon-calculator/assets/img/icons-fl-icons-icon-fl-train-services.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.fcc-rail-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #000000;
}

.fcc-rail-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fcc-rail-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'helveticaneuemedium', Arial, Helvetica, sans-serif;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #CDCDCD;
}

.fcc-rail-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fcc-step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcc-step-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #000000;
    flex: 1;
}

/* Step 2 Layout - Two Column (Results Left, Map Right) */
.fcc-step-2-layout {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.fcc-step-2-left {
    background: #FFFFFF;
    padding: 32px;
    width: 50%;
}

.fcc-step-2-right {
    background: #FFFFFF;
    padding: 24px;
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.fcc-map-section {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Map Container */
.fcc-map-container {
    width: 100%;
    height: 100%;
    position: sticky;
    top: 20px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fcc-map-svg {
    width: 100%;
    height: 100%;
    display: block;
    flex: 1;
}

.fcc-map-object {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    outline: none;
}

.fcc-map-object svg {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 400px;
}

.fcc-map-fallback {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 400px;
    display: block;
    max-width: 100%;
}

/* Route Line Animation */
.fcc-route-line {
    stroke: #fe8d00;
    stroke-width: 6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.fcc-route-line.active {
    opacity: 1;
    transform: translate(10px, -5px) !important;
}

/* Map Title */
.fcc-map-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #656565;
    text-align: right;
    margin: 0 0 16px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.fcc-map-title:hover {
    color: #E67C00;
}

/* Terminal Pins - Hidden by default */
.fcc-terminal-pin {
    display: none;
}

.fcc-terminal-pin.active {
    display: block;
}

/* Terminal Pin States */
.fcc-terminal-pin.start .fcc-pin-dot {
    fill: #fe8d00 !important /* Green for start */
}

.fcc-terminal-pin.end .fcc-pin-dot {
    fill: #fe8d00 !important /* Red for end */
}

/* Route Line */
.fcc-route-line {
    stroke: #fe8d00;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fcc-route-line.active {
    opacity: 1;
}

/* Results Table */
.fcc-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fcc-results-table {
    border-collapse: separate;
    border-spacing: 0;
}

.fcc-results-table th,
.fcc-results-table td {
    padding: 16px;
    text-align: left;
    border: 1px dashed #CDCDCD;
    font-size: 16px;
    line-height: 24px;
    height: 56px;
}

.fcc-results-table th {
    background: #4A90E2;
    font-weight: 400;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 24px;
    padding: 16px;
    height: 56px;
    border: 1px solid #4A90E2;
}

.fcc-results-table .fcc-method-name {
    font-weight: 400;
    color: #000000;
    font-size: 16px;
}

.fcc-results-table .fcc-emissions {
    font-weight: 700;
    color: #000000;
    font-size: 16px;
}

.fcc-results-table .fcc-savings {
    color: #157E33;
    font-weight: 600;
    font-size: 16px;
}

.fcc-results-table .fcc-percentage {
    color: #157E33;
    font-weight: 600;
    font-size: 16px;
    background: #F0F9F4;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Results Text Readability */
.fcc-results-left {
    background: #ffffff;
    margin-bottom: 20px;
}


.fcc-results-left p {
    color: #000000;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.fcc-results-left .fcc-highlight {
    font-size: 20px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    color: #157e33;
}

/* Results Boxes - Three separate bordered containers */
.fcc-results-box {
    border-bottom: 2px dashed #e5e7eb;
    border-radius: 0;
    margin-bottom: 0;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fcc-results-box.fcc-results-box--route {
    border-bottom: none;
}

.fcc-results-box--journey {
    /* First box: Journey details through key takeaway */
}

.fcc-results-box--enquiry {
    /* Second box: Decarbonisation enquiry section */
}

.fcc-results-box--route {
    /* Third box: Route details */
    padding: 24px 32px;
}

/* Journey Meta Styling */
.fcc-journey-meta {
    color: #000000;
    margin-bottom: 24px;
}

.fcc-journey-point {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.fcc-journey-meta .fcc-journey-label {
    color: #000000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.fcc-journey-meta .fcc-journey-value {
    color: #000000;
    font-weight: 500;
}

.fcc-journey-divider {
    width: 100%;
    height: 1px;
    background-color: #CDCDCD;
    margin: 16px 0;
}

/* Key Takeaway Styling */
.fcc-key-takeaway {
    color: #000000;
}

.fcc-key-takeaway .fcc-key-takeaway-title {
    color: #000000;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
}

.fcc-key-takeaway .fcc-key-takeaway-text {
    color: #000000;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.fcc-highlight {
    background-color: #B3F3CE;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.fcc-text-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.fcc-text-btn:hover {
    color: #FE8D00;
}

/* Emissions Table Styling */
.fcc-emissions-table {
    color: #000000;
}

.fcc-emissions-table th {
    color: #000000;
    font-weight: 600;
}

.fcc-emissions-table td {
    color: #000000;
}

.fcc-emissions-table .fcc-method-name {
    color: #000000;
    font-weight: 500;
}

.fcc-emissions-table .fcc-emissions {
    color: #000000;
    font-weight: 600;
}

/* Tooltip Styling */
.fcc-tooltip {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 250px;
    font-size: 14px;
    line-height: 1.4;
}

.fcc-tooltip-content {
    padding: 12px 16px;
    color: #000000;
    font-weight: 500;
}

.fcc-tooltip-arrow {
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #ffffff;
}

.fcc-tooltip-arrow::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 1px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid #e9ecef;
}

/* Interactive States and Accessibility */
.fcc-btn:focus,
.fcc-calculate-btn:focus,
.fcc-btn-secondary:focus {
    outline: 2px solid #FE8D00;
    outline-offset: 2px;
}

.fcc-postcode-input:focus-visible,
.fcc-number-input:focus-visible {
    outline: 2px solid #FE8D00;
    outline-offset: 2px;
}

.fcc-checkbox:focus-within .fcc-checkbox-mark {
    box-shadow: 0 0 0 3px rgba(254, 141, 0, 0.2);
}

/* Field validation states */
.fcc-field-valid {
    border-color: #157E33 !important;
    background-color: rgba(21, 126, 51, 0.05);
}

.fcc-field-invalid {
    border-color: #C41100 !important;
    background-color: rgba(196, 17, 0, 0.05);
}

.fcc-field-error {
    color: #C41100;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin-top: 4px;
}

/* Text button styles */
.fcc-text-btn {
    background: transparent;
    border: none;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.fcc-text-btn:hover {
    color: #FE8D00;
    text-decoration: none;
}

/* Responsive Design - Updated for Design Specifications */

/* Medium screens - 992px breakpoint */
@media (max-width: 992px) {
    .fcc-main-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 32px;
    }
}

/* Mobile screens - 768px breakpoint */
@media (max-width: 768px) {
    .fcc-calculator-wrapper {
        margin: 0 auto;
        padding: 0;
    }

    .fcc-main-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 23px;
    }

    /* Modal responsive adjustments */
    .fcc-modal {
        width: calc(100vw - 32px);
        height: auto;
        max-height: 90vh;
        margin: 16px;
    }

    /* Enquiry Modal on mobile */
    .fcc-enquiry-modal {
        width: calc(100vw - 32px);
        max-width: 100%;
    }

    .fcc-enquiry-modal .fcc-modal-content {
        padding: 20px;
        max-height: calc(90vh - 80px);
    }

    /* Journey Map modal dimensions on mobile */
    .fcc-journey-modal {
        width: 329px;
        height: auto;
        max-height: 95vh;
        margin: 16px;
    }

    .fcc-modal-header {
        padding: 24px;
        height: auto;
    }

    .fcc-modal-title {
        font-size: 24px;
        line-height: 28px;
    }

    .fcc-modal-content {
        padding: 24px;
        height: auto;
        max-height: calc(90vh - 60px);
    }

    .fcc-journey-modal {
        width: 329px;
        margin: 16px;
    }
    
    /* Ensure proper desktop display */
    .fcc-view-journey-map {
        display: none !important;
    }
    
    /* Show map inline on desktop */
    .fcc-results-right {
        display: block;
    }
    
    .fcc-results-right .fcc-map-container {
        display: flex;
    }
    
    .fcc-step-2-right {
        display: flex;
    }

    .fcc-form-section {
        order: 1;
    }

    .fcc-info-section {
        order: 2;
        padding-left: 0;
        margin-top: 20px;
    }

    .fcc-step-panel {
        margin-bottom: 0;
    }

    .fcc-step-header {
        padding: 24px 16px;
        gap: 12px;
    }

    .fcc-step-number {
        width: 40px;
        height: 40px;
        font-size: 22.5px;
        line-height: 30px;
    }

    .fcc-step-title {
        font-size: 20px;
        line-height: 24px;
        font-weight: 700;
    }

    .fcc-step-toggle {
        font-size: 12px;
        line-height: 16px;
    }

    .fcc-step-content {
        padding: 24px;
    }

    .fcc-form-fields {
        gap: 16px;
    }

    .fcc-form-row {
        flex-direction: column;
        gap: 24px;
    }

    .fcc-form-row--split {
        gap: 24px;
        align-items: flex-start !important;
    }

    .fcc-form-group--number {
        max-width: 100%;
    }

    .fcc-field-arrow {
        margin-top: 0;
        align-self: flex-start;
    }

    .fcc-field-arrow svg {
        width: 64px;
        height: 64px;
        transform: rotate(90deg);
    }

    .fcc-rail-steps {
        margin-top: 20px;
    }

    .fcc-rail-step {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .fcc-rail-step:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .fcc-required-note {
        margin-top: 20px;
        font-size: 12px;
        line-height: 16px;
    }

    /* Mobile hero adjustments */
    .fcc-hero-title {
        font-size: 42px;
        line-height: 48px;
        margin: 0 0 24px 0;
    }

    .fcc-hero-subtitle {
        font-size: 20px;
        line-height: 24px;
        margin: 0 0 16px 0;
    }
}

@media (max-width: 480px) {
    .fcc-calculator-wrapper {
        max-width: 100%;
    }

    .fcc-main-layout {
        padding: 0 15px;
    }

    .fcc-step-header {
        padding: 16px 12px;
    }

    /* .fcc-step-content {
        padding: 0 !important;
    } */

    .fcc-hero-title {
        font-size: 24px;
        line-height: 28px;
    }

    .fcc-hero-subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .fcc-modal {
        width: calc(100vw - 16px);
        margin: 8px;
    }

    .fcc-modal-header {
        padding: 16px;
    }

    .fcc-modal-title {
        font-size: 20px;
        line-height: 24px;
    }

    .fcc-modal-content {
        padding: 16px;
    }
}

/* Button Styles */
.fcc-form-actions {
    text-align: left;
    margin: 24px 0 0 0;
}

.fcc-calculate-btn {
    width: 100%;
    height: 48px;
    background: #FE8D00;
    color: #FFFFFF;
    border: none;
    font-family: 'helveticaneuebold', Arial, Helvetica, sans-serif;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.fcc-calculate-btn:hover {
    background: #E67C00;
    box-shadow: 0 2px 8px rgba(254, 141, 0, 0.3);
}

.fcc-calculate-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.fcc-calculate-btn--primary {
    background: #FE8D00;
}

.fcc-btn-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #FFFFFF;
}

.fcc-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fcc-btn-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: fcc-spin 1s linear infinite;
}

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

.fcc-initial-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.fcc-initial-left,
.fcc-initial-right {
    min-width: 0;
}

.fcc-panel {
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.fcc-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    color: #fff;
    padding: 24px 32px;
}

.fcc-panel-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.fcc-panel-spacer {
    flex: 1;
}

a.fcc-edit-journey {
    font-size: 14px;
}

.fcc-panel-action {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    opacity: .9;
}

.fcc-secondary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.fcc-required-note {
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
}

.fcc-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.fcc-step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FE8D00;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.fcc-section-title {
    margin: 0;
    font-size: 1.25rem;
}

.fcc-how-rail-works h4 {
    font-size: 1rem;
    color: #111827;
}

.fcc-rail-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.fcc-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.fcc-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #374151;
    font-size: 14px;
}

.fcc-feature-list img {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* Ensure inline SVG icons match previous image sizing */
.fcc-feature-list svg {
    margin-top: 2px;
    flex: 0 0 auto;
}

/* Split row to match arrow between fields */
.fcc-form-row--split {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.fcc-field-arrow img {
    width: 32px;
    height: 32px;
}

/* Buttons match green CTA from designs */
.fcc-form-actions {
    text-align: left;
}

.fcc-calculate-btn {
    background: #157e33;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.fcc-calculate-btn:hover {
    background: #15803d;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

@media (max-width: 1024px) {
    .fcc-initial-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Results Styles */
.fcc-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.fcc-results-container {
    max-width: 100%;
}

.fcc-results-container h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.fcc-journey-info {
    background: #e0f2fe;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0284c7;
}

.fcc-journey-info p {
    margin: 0.25rem 0;
    color: #0f172a;
}

/* Table Styles */
.fcc-emissions-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.fcc-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fcc-table th {
    background: #cdcdcd;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
}

.fcc-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.fcc-table tbody tr:hover {
    background: #f9fafb;
}

.fcc-road-row {
    background: #FFE6E6;
}

.fcc-rail-diesel-row {
    background: #E6F3FF;
}

.fcc-rail-eco90-row {
    background: #E6FFE6;
}

.fcc-rail-hvo-row {
    background: #E6FFE6;
}

.fcc-emissions {
    font-weight: 700;
    font-size: 1.1rem;
}

.fcc-emissions small {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.85em;
}

.fcc-savings {
    color: #059669;
    font-weight: 600;
}

/* Key Findings */
.fcc-key-findings {
    background: #ecfdf5;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #a7f3d0;
}

.fcc-key-findings h4 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.fcc-key-findings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fcc-key-findings li {
    padding: 0.5rem 0;
    color: #064e3b;
    position: relative;
    padding-left: 1.5rem;
}

.fcc-key-findings li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Route Details Toggle */
.fcc-route-details-toggle {
    margin: 0;
}

.fcc-toggle-route-details {
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.29;
    letter-spacing: normal;
    text-align: right;
    color: #656565;
    display: flex;
    gap: 8px;
}

/* .fcc-toggle-route-details:hover {
    color: #E67C00;
    text-decoration: none;
} */

.fcc-route-details {
    display: none;
    margin-top: 16px;
    padding: 16px 0;
    background: transparent;
    border: none;
    scroll-margin-top: 200px;
}

.fcc-route-details.is-expanded {
    display: block;
}

.fcc-route-details h4 {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin: 0 0 16px 0;
}

.fcc-route-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Disclaimers Section (outside boxes) */
.fcc-disclaimers {
    margin-top: 24px;
    padding: 0;
}

.fcc-disclaimers p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.29;
    color: #656565;

}

.fcc-disclaimers p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .fcc-route-info {
        grid-template-columns: 1fr;
    }
}

.fcc-route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fcc-route-item:last-child {
    margin-bottom: 0;
}

.fcc-route-label {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
}

.fcc-route-value {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
}

.fcc-distance-explanation {
    margin-top: 15px;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

.fcc-distance-explanation p {
    margin: 0;
    color: #4b5563;
    line-height: 1.4;
}

.fcc-distance-explanation strong {
    color: #1f2937;
}

/* Disclaimer */
.fcc-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 6px;
    border-left: 4px solid #f59e0b;
}

.fcc-disclaimer p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

/* Enquiry Section Styling */
.fcc-enquiry-section {
    text-align: left;
}

.fcc-enquiry-title {
    color: #000000;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    font-size: 26px;
    line-height: 1.08;
}

.fcc-enquiry-text {
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    margin: 0 0 24px 0;
}

.fcc-enquiry-btn {
    background: #157E33;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    width: 100%;
}

.fcc-enquiry-btn:hover {
    background: #0F5A26;
    color: #FFFFFF;
}

.fcc-enquiry-section .fcc-disclaimers {
    margin-top: 24px;
    text-align: left;
}

.fcc-enquiry-section .fcc-disclaimers p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #656565;
}

.fcc-enquiry-section .fcc-disclaimers p:last-child {
    margin-bottom: 0;
}

/* Call-to-Action Styles */
.fcc-enquiry-cta {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
}

.fcc-enquiry-cta-content h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.fcc-enquiry-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.fcc-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fcc-btn-primary {
    background: white;
    color: #1e40af;
}

.fcc-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Standalone Enquiry Form Styles */
.fcc-standalone-enquiry {
    max-width: 600px;
    margin: 0 auto;
}

.fcc-enquiry-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.fcc-enquiry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.fcc-enquiry-header h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.fcc-enquiry-header p {
    color: #6b7280;
    margin-bottom: 0;
}

.fcc-form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.fcc-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.fcc-form-section h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.fcc-enquiry-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #22c55e;
}

.fcc-enquiry-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #ef4444;
}

/* Error Styles */
.fcc-errors {
    margin-top: 1rem;
}

.fcc-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #ef4444;
}

.fcc-no-results {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Terminal Styles */
.fcc-terminals-container {
    margin: 1rem 0;
}

.fcc-terminals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fcc-terminal-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.fcc-terminal-item:last-child {
    border-bottom: none;
}

.fcc-postcode {
    color: #6b7280;
    font-size: 0.9rem;
}

.fcc-terminals-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.fcc-terminals-table th,
.fcc-terminals-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.fcc-terminals-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.fcc-terminals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.fcc-terminal-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fcc-terminal-card h4 {
    margin: 0 0 0.5rem 0;
    color: #1e40af;
}

.fcc-coverage {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Back Link */
.fcc-back-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.fcc-back-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.fcc-back-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {

    .fcc-calculator-title {
        font-size: 1.5rem;
    }

    .fcc-table {
        font-size: 0.9rem;
    }

    .fcc-table th,
    .fcc-table td {
        padding: 0.75rem 0.5rem;
    }

    .fcc-calculate-btn {
        width: 100%;
        padding: 14px 24px;
    }

    /* Step 2 Mobile Styles */
    .fcc-step-2-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .fcc-step-2-left {
        background: #FFFFFF;
        border: 1px solid #CDCDCD;
        border-radius: 8px;
        padding: 24px;
        margin: 16px 0;
    }

    .fcc-step-2-right {
        background: #F5F5F5;
        border: 1px solid #CDCDCD;
        border-radius: 8px;
        padding: 16px;
        margin: 16px 0;
        height: auto;
    }


    .fcc-map-title {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .fcc-results-table th {
        background: #000000;
        color: #FFFFFF;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
        height: 44px;
        padding: 12px;
    }

    .fcc-results-table td {
        padding: 12px;
        height: 44px;
        border: 1px solid #CDCDCD;
    }
}

@media (max-width: 480px) {
    .fcc-calculator-title {
        font-size: 1.25rem;
    }

    .fcc-table {
        font-size: 0.8rem;
    }

    .fcc-route-grid {
        grid-template-columns: 1fr;
    }
}

/* Enquiry Form Styles */
.fcc-enquiry-form-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.fcc-enquiry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.fcc-enquiry-header h3 {
    color: #1e40af;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.fcc-enquiry-header p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

.fcc-enquiry-form {
    max-width: 600px;
    margin: 0 auto;
}

.fcc-enquiry-form .fcc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fcc-enquiry-form .fcc-form-group {
    margin-bottom: 1rem;
}

.fcc-enquiry-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.fcc-enquiry-form input[type="text"],
.fcc-enquiry-form input[type="email"],
.fcc-enquiry-form input[type="tel"],
.fcc-enquiry-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.fcc-enquiry-form input:focus,
.fcc-enquiry-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fcc-enquiry-form textarea {
    resize: vertical;
    min-height: 100px;
}

.fcc-form-actions {
    text-align: center;
    margin-top: 2rem;
}

.fcc-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fcc-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fcc-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.fcc-privacy-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Success/Error Messages */
.fcc-enquiry-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #047857;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
}

.fcc-enquiry-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
}

/* Modal Styles - About ECO90 (Desktop) */
.fcc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7955);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.fcc-modal-overlay.active {
    display: flex;
}

.fcc-modal {
    width: 664px;
    height: auto;
    max-height: 90vh;
    background: #FFFFFF;
    border: 1px solid #CDCDCD;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Enquiry Modal - wider to accommodate form */
.fcc-enquiry-modal {
    /* width: 800px; */
    max-width: 90vw;
}

/* Journey Summary Box */
.fcc-journey-summary-box {
    border: 1px dashed #CDCDCD;
    padding: 24px;
    margin-bottom: 24px;
    background: #FAFAFA;
}

.fcc-journey-summary-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fcc-journey-summary-item:last-child {
    margin-bottom: 0;
}

.fcc-journey-summary-label {
    font-family: 'helveticaneuebold', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
    margin-right: 8px;
    min-width: 180px;
}

.fcc-journey-summary-value {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
}

/* Mobile optimization for journey summary */
@media (max-width: 768px) {
    .fcc-journey-summary-box {
        padding: 16px;
        margin-bottom: 20px;
    }

    .fcc-journey-summary-label {
        min-width: 100%;
        margin-bottom: 4px;
    }

    .fcc-journey-summary-value {
        min-width: 100%;
        padding-left: 0;
    }
}

/* Thank You Message Styling */
.fcc-thank-you-message {
    text-align: left;
}

.fcc-thank-you-title {
    font-size: 26px;
    line-height: 28px;
    color: #000;
    margin: 0 0 24px 0;
    text-transform: uppercase;
}

.fcc-thank-you-content {
    font-family: 'HelveticaNeueLTPro-Roman', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000;
    text-align: left;
    max-width: 600px;
}

.fcc-thank-you-content p {
    margin: 0 0 16px 0;
}

.fcc-thank-you-content p:last-child {
    margin-bottom: 0;
}

.fcc-modal-header {
    background: #000000;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fcc-modal-title {
    font-size: 30px;
    line-height: 1;
    color: #FFFFFF;
    margin: 0;
    text-transform: uppercase;
}

.fcc-modal-close {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 24px;
    color: black;
    background-color: white;
    border-radius: 50%;
    border: none;
}

.fcc-modal-close svg path{
    stroke: black !important;
}

.fcc-modal-close:hover {
    opacity: 0.7;
}

.fcc-modal-content {
    padding: 32px;
    background: #FFFFFF;
    height: auto;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.fcc-modal-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin: 0 0 16px 0;
}

.fcc-modal-content p:last-child {
    margin-bottom: 0;
}

/* Enquiry Form Container in Modal */
.fcc-enquiry-form-container {
    width: 100%;
}

.fcc-enquiry-modal .fcc-modal-content {
    padding: 24px 32px 32px;
}
.fcc-enquiry-modal .fcc-modal-content .gform_heading {
    display: none;
}

/* Gravity Forms styling inside modal */
.fcc-enquiry-modal .gform_wrapper {
    margin: 0;
}

.fcc-enquiry-modal .gform_wrapper .gform_heading {
    margin-bottom: 24px;
}

.fcc-enquiry-modal .gform_wrapper .gform_title {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.fcc-enquiry-modal .gform_wrapper .gform_body {
    margin-top: 20px;
}

.fcc-enquiry-modal .gform_wrapper .gfield {
    margin-bottom: 20px;
}

.fcc-enquiry-modal .gform_wrapper .gfield_label {
    font-family: 'HelveticaNeueLTPro-Roman', Arial, Helvetica, sans-serif;
    font-size: 16px !important;
    color: #000000;
    margin-bottom: 8px;
}

.fcc-enquiry-modal .gform_wrapper input[type="text"],
.fcc-enquiry-modal .gform_wrapper input[type="email"],
.fcc-enquiry-modal .gform_wrapper input[type="tel"],
.fcc-enquiry-modal .gform_wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #656565;
    border-radius: 4px;
    background: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    transition: border-color 0.2s ease;
}

.fcc-enquiry-modal .gform_wrapper input:focus,
.fcc-enquiry-modal .gform_wrapper textarea:focus {
    outline: none;
    border-color: #FE8D00;
    border-width: 2px;
}

.fcc-enquiry-modal .gform_wrapper textarea::placeholder {
    color: #000;
}

.fcc-enquiry-modal .gform_wrapper .gform_footer {
    padding: 24px 0 0;
    margin: 0;
}

.fcc-enquiry-modal .gform_wrapper .gform_button {
    width: 100%;
    height: 48px;
    background: #157E33;
    color: #FFFFFF;
    font-family: 'HelveticaNeueLTPro-Bd', Arial, Helvetica, sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.fcc-enquiry-modal .gform_wrapper .gform_button:hover {
    background: #0F5A26;
}

/* Journey Map Modal - Mobile Only */
.fcc-journey-modal {
    width: 100%;
    max-width: 400px;
    height: auto;
    background: #FFFFFF;
    border: 1px solid #CDCDCD;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.fcc-journey-modal .fcc-modal-header {
    background: #000000;
    padding: 24px;
    text-transform: uppercase;
}

.fcc-journey-modal .fcc-modal-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.fcc-journey-modal .fcc-modal-content {
    padding: 24px;
    height: auto;
}

.fcc-journey-info {
    margin-bottom: 16px;
}

.fcc-journey-info h4 {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #000000;
    margin: 0 0 16px 0;
}

.fcc-journey-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.fcc-journey-label {
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #000000;
}

.fcc-journey-value {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fcc-form-fields {
    margin-top: 24px;
}

.fcc-form-group label {
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    margin-bottom: 8px;
    display: block;
}

.fcc-form-group input[type="text"],
.fcc-form-group input[type="email"],
.fcc-form-group input[type="tel"],
.fcc-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-family: 'helveticaneuemedium', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin-bottom: 0;
    transition: border-color 0.2s ease;
}

.fcc-form-group input:focus,
.fcc-form-group textarea:focus {
    outline: none;
    border-color: #FE8D00;
    border-width: 2px;
}

.fcc-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.fcc-modal-actions {
    margin-top: 24px;
    text-align: center;
}

.fcc-btn-secondary {
    background: transparent;
    border: 1px solid #E0E0E0;
    color: #000000;
    height: 48px;
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 16px;
}

.fcc-btn-secondary:hover {
    background: #F5F5F5;
    border-color: #CDCDCD;
}

/* Mobile: Show map below results */
@media (max-width: 768px) {
    .fcc-results-right {
        display: block;
        width: 100%;
        margin-top: 24px;
    }

    .fcc-step-2-right {
        display: block;
        width: 100%;
        margin-top: 24px;
    }

    /* Adjust results layout for mobile */
    .fcc-results-layout {
        grid-template-columns: 1fr;
    }

    .fcc-step-2-layout {
        grid-template-columns: 1fr;
    }

    .fcc-main-layout {
        grid-template-columns: 1fr;
    }

    .fcc-results-left {
        width: 100%;
    }
}

/* Print Styles */
@media print {

    .fcc-calculator-form,
    .fcc-enquiry-form-wrapper,
    .fcc-modal-overlay {
        display: none;
    }

    .fcc-results {
        box-shadow: none;
        border: 1px solid #000;
    }

    .fcc-back-link {
        display: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fcc-enquiry-form-wrapper {
        padding: 1.5rem;
        margin: 1rem 0;
    }

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

    .fcc-enquiry-header h3 {
        font-size: 1.25rem;
    }
}

/* 50/50 Layout for Results and Map */
.fcc-results-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    align-items: start;
}

.fcc-results-left {
    min-width: 0;
}

.fcc-results-right {
    min-width: 0;
}

/* Make calculator wrapper full width when showing results */
.fcc-calculator-wrapper:has(.fcc-results-layout) {
    max-width: 100%;
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* When the 50/50 results grid is present, remove container padding/bg for a full-bleed split */
.fcc-results:has(.fcc-results-layout) {
    padding: 0;
    background: transparent;
    border: 0;
}

/* Responsive layout - stack on smaller screens */
@media (max-width: 1024px) {
    .fcc-results-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Ensure map fills its half width responsively */
.fcc-results-right .fcc-uk-map {
    width: 100%;
    height: auto;
}

/* Remove any extra chrome around the map in results layout */
.fcc-results-right .fcc-uk-map-container {
    background: transparent;
    padding: 0;
    margin: 0;
    border: 0;
    position: relative;
}

.fcc-results-right {
    padding: 0;
}

/* Sustainability Banner (green background section across steps) */
.fcc-sustainability-banner {
    background: #006e42;
    /* Freightliner green */
    color: #fff;
    margin: 40px 0 0;
    padding: 48px 20px;
}

.fcc-sustainability-banner .fcc-sust-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
}

.fcc-sustainability-banner .fcc-sust-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
}

.fcc-sustainability-banner .fcc-sust-icon {
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.fcc-sustainability-banner .fcc-sust-text {
    font-size: 16px;
    line-height: 1.5;
}

.fcc-sustainability-banner .fcc-sust-text small {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
    .fcc-sustainability-banner .fcc-sust-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fcc-sustainability-banner .fcc-sust-item {
        grid-template-columns: 56px 1fr;
    }

    .fcc-sustainability-banner {
        padding: 36px 16px;
    }
}

@media (max-width: 1024px) {
    .fcc-results-right .fcc-uk-map {
        width: 100%;
        height: auto;
    }
}

/* Adjust results container for side-by-side layout */
.fcc-results-left .fcc-results-container {
    background: #ffffff;
    height: fit-content;
}

/* Fix map container to match results styling */
.fcc-results-right .fcc-map-container {
    background: #ffffff;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fcc-results-right .fcc-map-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
}

.fcc-results-right .fcc-map {
    border-radius: 0 0 8px 8px;
    border: none;
    margin: 0;
}

.fcc-results-right .fcc-map-svg {
    flex: 1;
    width: 100%;
}

.fcc-results-right .fcc-map-object {
    width: 100%;
    height: auto;
}

.fcc-results-right .fcc-map-legend {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.fcc-results-right .fcc-map-info {
    padding: 16px 24px 24px;
    background: #f8fafc;
}

/* Terminal Pin Styles */
.fcc-terminal-pin {
    display: none;
}

.fcc-terminal-pin[style*="block"] {
    display: block !important;
    visibility: visible !important;
}

.fcc-pin-dot {
    display: none;
}

.fcc-pin-dot[style*="block"] {
    display: block !important;
    visibility: visible !important;
}

/* Partial Route Styling */
.fcc-partial-route-notice {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.fcc-route-type-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.fcc-route-type-badge.road-rail-road {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.fcc-route-type-badge.rail-rail {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #2563eb;
}

.fcc-direct-route-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 16px 0;
    color: #15803d;
    font-size: 0.9rem;
}

.fcc-badge-icon {
    font-size: 1.2rem;
}

.fcc-partial-explanation {
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 8px 0 16px;
}

.fcc-route-breakdown {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
}

.fcc-route-breakdown h5 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.fcc-route-breakdown ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.fcc-route-breakdown li {
    margin: 4px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #6b7280;
}

.fcc-route-breakdown li strong {
    color: #374151;
}

/* Enhanced responsiveness for route notices */
@media (max-width: 768px) {
    .fcc-partial-route-notice {
        padding: 12px;
        margin: 12px 0;
    }

    .fcc-route-type-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
    }

    .fcc-badge-icon {
        font-size: 1rem;
    }

    .fcc-route-breakdown {
        padding: 10px;
    }

    .fcc-route-breakdown ul {
        padding-left: 16px;
    }
}

.fcc-step-content.step-two-content:has(.fcc-results-box--enquiry), .fcc-step-content.step-two-content:has(.fcc-results-box--route) {
    background-color: #f2f2f2 !important;
} 