/* Tyre Search for Review Submission */

/* Custom validation classes - completely independent of Bootstrap validation
   These give us full control without fighting :valid pseudo-class */
.field-valid {
    border-color: #198754 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.field-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Error message styling */
.field-error-message {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.tyre-search-container {
    position: relative;
}

#tyre-search {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#tyre-search:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#tyre-search.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#tyre-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 2px;
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
}

.tyre-search-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.tyre-search-item:last-child {
    border-bottom: none;
}

.tyre-search-item:hover,
.tyre-search-item.active {
    background-color: #f8f9fa;
}

.tyre-search-item .tyre-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 4px;
    background: #f8f9fa;
}

.tyre-search-item .tyre-thumb-placeholder {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    border-radius: 4px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.tyre-search-item .tyre-info {
    flex: 1;
    min-width: 0;
}

.tyre-search-item .tyre-name {
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Two-column grid layout for desktop */
.tyre-selection-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1rem;
}

.tyre-selection-search {
    display: flex;
    flex-direction: column;
}

.tyre-selection-dropdowns {
    display: flex;
    flex-direction: column;
}

.tyre-selection-dropdowns .mb-3:last-child {
    margin-bottom: 0 !important;
}

/* Vertical divider for desktop */
.tyre-selection-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    align-self: stretch;
    position: relative;
}

.tyre-selection-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #dee2e6;
}

.tyre-selection-divider .divider-text {
    background-color: #fff;
    padding: 0.75rem 0;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Centered submit button */
.tyre-selection-submit {
    display: flex;
    justify-content: center;
    margin: 2rem 0 1rem;
}

.tyre-selection-submit .btn-xl {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    min-width: 300px;
}

/* Car search - reuses tyre search styles */
.car-search-container {
    position: relative;
}

#car-search {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#car-search:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#car-search.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#car-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 2px;
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.car-search-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.car-search-item:last-child {
    border-bottom: none;
}

.car-search-item:hover,
.car-search-item.active {
    background-color: #f8f9fa;
}

.car-search-item .car-name {
    font-weight: 500;
    color: #212529;
}

.car-search-item .car-reviews {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Car selection grid - same as tyre selection */
.car-selection-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1rem;
}

.car-selection-search {
    display: flex;
    flex-direction: column;
}

.car-selection-dropdowns {
    display: flex;
    flex-direction: column;
}

.car-selection-dropdowns .mb-3:last-child {
    margin-bottom: 0 !important;
}

.car-selection-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    align-self: stretch;
    position: relative;
}

.car-selection-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #dee2e6;
}

.car-selection-divider .divider-text {
    background-color: #fff;
    padding: 0.75rem 0;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Driving style grid */
.driving-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.driving-style-grid .form-group {
    margin-bottom: 0;
}

.driving-style-grid .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Can't find tyre section */
.cant-find-tyre-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.cant-find-tyre-link {
    color: #0d6efd;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cant-find-tyre-link:hover {
    text-decoration: underline;
}

.cant-find-tyre-link .toggle-icon {
    transition: transform 0.3s ease;
}

.cant-find-tyre-link.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Request tyre form (collapsible) */
.request-tyre-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.request-tyre-form.expanded {
    max-height: 500px;
    padding-top: 1rem;
}

.request-tyre-form .form-inner {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.request-tyre-form .form-inner h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.request-tyre-form .form-inner p {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Success message styling */
.request-success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.request-success-message .success-icon {
    font-size: 1.5rem;
}

/* Error message styling */
.request-error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

/* Loading state */
.request-tyre-form .btn-loading {
    position: relative;
    pointer-events: none;
}

.request-tyre-form .btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    /* Stack layout on mobile */
    .tyre-selection-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tyre-selection-search {
        margin-bottom: 1rem;
    }

    /* Horizontal divider on mobile */
    .tyre-selection-divider {
        flex-direction: row;
        padding: 1rem 0;
    }

    .tyre-selection-divider::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 1px;
    }

    .tyre-selection-divider .divider-text {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0 1rem;
    }

    .tyre-selection-dropdowns {
        margin-top: 0;
    }

    .tyre-selection-submit .btn-xl {
        min-width: auto;
        width: 100%;
    }

    #tyre-search-results {
        max-height: 250px;
    }

    .tyre-search-item {
        padding: 0.5rem 0.75rem;
    }

    .tyre-search-item .tyre-thumb,
    .tyre-search-item .tyre-thumb-placeholder {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .request-tyre-form .form-inner {
        padding: 1rem;
    }

    /* Car selection grid mobile */
    .car-selection-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .car-selection-search {
        margin-bottom: 1rem;
    }

    .car-selection-divider {
        flex-direction: row;
        padding: 1rem 0;
    }

    .car-selection-divider::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 1px;
    }

    .car-selection-divider .divider-text {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0 1rem;
    }

    .car-selection-dropdowns {
        margin-top: 0;
    }

    #car-search-results {
        max-height: 200px;
    }

    /* Driving style grid mobile */
    .driving-style-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===========================================
   Review Form Section Cards & Visual Hierarchy
   =========================================== */

/* Base section card styling */
.review-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
}

/* Step 1 - Blue accent (tyre selection) */
.review-section-blue {
    border-left: 4px solid #0d6efd;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

/* Step 2 - Amber accent (driving/mileage) */
.review-section-amber {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fffef5 0%, #fff 100%);
}

/* Step 3 - Green accent (ratings) */
.review-section-green {
    border-left: 4px solid #198754;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

/* Step 4 - Purple accent (review text) */
.review-section-purple {
    border-left: 4px solid #6f42c1;
    background: linear-gradient(135deg, #f8f5ff 0%, #fff 100%);
}

/* Step 5 - Teal accent (vehicle) */
.review-section-teal {
    border-left: 4px solid #20c997;
    background: linear-gradient(135deg, #f0fdfa 0%, #fff 100%);
}

/* Final details - Red/coral accent */
.review-section-coral {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

/* Tyre info in Step 1 */
.tyre-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tyre-card-image {
    width: 80px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
}

.tyre-info-details {
    flex: 1;
}

.tyre-info-details p {
    font-size: 1.1rem;
}

/* Tyre size input */
.tyre-size-input {
    margin-top: 1rem;
}

.tyre-size-group {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tyre-size-field .form-select {
    width: auto;
    min-width: 80px;
}

.tyre-size-separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    padding-bottom: 0.35rem;
}

.tyre-size-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* Final details boxes - coral themed */
.final-details-box {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.final-details-logged-in {
    background: linear-gradient(135deg, #a94442 0%, #8b3a3a 100%);
    color: #fff;
}

.final-details-logged-in a {
    color: #fff;
    text-decoration: underline;
}

.final-details-logged-in a:hover {
    color: #f0d0d0;
}

.final-details-logged-in i {
    margin-right: 0.5rem;
}

.final-details-login {
    background: linear-gradient(135deg, #a94442 0%, #8b3a3a 100%);
    color: #fff;
}

.final-details-login .form-control {
    background: rgba(255,255,255,0.95);
}

.final-details-login .form-label {
    color: #fff;
}

/* Legacy classes for backwards compatibility */
.review-section-essential {
    border-left: 4px solid #0d6efd;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.review-section-highlighted {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fffef5 0%, #fff 100%);
}

.review-section-optional {
    border-left: 4px solid #6c757d;
    background: #fafafa;
}

/* Section headers */
.review-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.review-section-header h1,
.review-section-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.review-section-header .section-icon {
    font-size: 1.25rem;
}

/* ==========================================
   Rating Button System
   ========================================== */

.rating-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.rating-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rating-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rating-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.rating-hint {
    font-size: 0.8rem;
    color: #6c757d;
}

.rating-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.rating-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-btn:hover {
    border-color: #198754;
    background: #f0fdf4;
    color: #198754;
}

.rating-btn.selected {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

.rating-btn-na {
    min-width: 44px;
    font-size: 0.75rem;
    color: #6c757d;
}

.rating-btn-na:hover {
    border-color: #6c757d;
    background: #f8f9fa;
    color: #6c757d;
}

.rating-btn-na.selected {
    border-color: #6c757d;
    background: #6c757d;
    color: #fff;
}

/* Color gradient for selected ratings */
.rating-btn.selected[data-value="1"],
.rating-btn.selected[data-value="2"] {
    background: #dc3545;
    border-color: #dc3545;
}

.rating-btn.selected[data-value="3"],
.rating-btn.selected[data-value="4"] {
    background: #fd7e14;
    border-color: #fd7e14;
}

.rating-btn.selected[data-value="5"],
.rating-btn.selected[data-value="6"] {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.rating-btn.selected[data-value="7"],
.rating-btn.selected[data-value="8"] {
    background: #20c997;
    border-color: #20c997;
}

.rating-btn.selected[data-value="9"],
.rating-btn.selected[data-value="10"] {
    background: #198754;
    border-color: #198754;
}

/* Desktop: horizontal layout */
@media (min-width: 768px) {
    .rating-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .rating-label {
        flex: 0 0 200px;
    }

    .rating-buttons {
        flex: 1;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .rating-btn {
        min-width: 32px;
        height: 32px;
    }
}

/* Larger touch targets on mobile */
@media (max-width: 767px) {
    .rating-btn {
        min-width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .rating-btn-na {
        min-width: 50px;
    }
}

.badge-optional {
    font-size: 0.7rem;
    font-weight: 500;
    background: #6c757d;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Highlighted field group for mileage + stage */
.highlighted-field-group {
    background: #fff8e6;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.highlighted-field-group .field-label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    color: #212529;
}

.highlighted-field-group .field-help {
    font-size: 0.875rem;
    color: #856404;
    margin-bottom: 0.5rem;
}

.highlighted-field-group .form-control,
.highlighted-field-group .form-select {
    font-size: 1.1rem;
}

/* Blue variant for tyre size in Step 1 */
.highlighted-field-group-blue {
    background: #e7f1ff;
    border-color: #b6d4fe;
}

.highlighted-field-group-blue .field-help {
    color: #084298;
}

/* Writing tips box */
.writing-tips {
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.writing-tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #0a58ca;
    font-size: 0.95rem;
}

.writing-tips ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #055160;
}

.writing-tips li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.writing-tips li:last-child {
    margin-bottom: 0;
}

/* Character feedback for review text */
.review-character-feedback {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    transition: color 0.3s ease;
}

.review-character-feedback.needs-more {
    color: #dc3545;
}

.review-character-feedback.good-start {
    color: #856404;
}

.review-character-feedback.excellent {
    color: #28a745;
}

/* Collapsible sections */
.review-section-collapsible .section-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.review-section-collapsible .section-toggle:hover {
    opacity: 0.85;
}

.review-section-collapsible .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #6c757d;
}

.review-section-collapsible.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.review-section-collapsible .section-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
}

.review-section-collapsible.collapsed .section-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Section intro text */
.section-intro {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Driving context grid - enhanced version */
.driving-context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.driving-context-grid .form-group {
    margin-bottom: 0;
}

/* Tyre size compact input layout */
.tyre-size-input {
    margin-bottom: 1rem;
}

.tyre-size-group {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tyre-size-field {
    display: flex;
    flex-direction: column;
}

.tyre-size-field .form-select {
    width: auto;
    min-width: 80px;
}

.tyre-size-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tyre-size-separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    padding-bottom: 0.35rem;
}

/* Submit button - larger and more prominent */
.btn-submit-review {
    padding: 1rem 3rem;
    font-size: 1.35rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.25);
    transition: all 0.2s ease;
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.35);
}

.btn-submit-review i {
    margin-right: 0.5rem;
}

.submit-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 8px;
    margin-top: 1rem;
}

/* Captcha section styling */
.captcha-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.captcha-input {
    max-width: 250px;
}

/* Section header h2 styling */
.review-section-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

/* Mobile responsive for new styles */
@media (max-width: 768px) {
    .review-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .review-section-header h2 {
        font-size: 1.15rem;
    }

    .highlighted-field-group {
        padding: 1rem;
    }

    .driving-context-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .writing-tips {
        padding: 0.875rem 1rem;
    }

    .writing-tips li {
        font-size: 0.85rem;
    }

    .tyre-size-group {
        gap: 0.35rem;
    }

    .tyre-size-field .form-select {
        min-width: 70px;
    }

    .tyre-size-separator {
        font-size: 1.25rem;
    }

    .btn-submit-review {
        padding: 0.875rem 2rem;
        font-size: 1.15rem;
        width: 100%;
    }
}
