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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(126, 34, 206, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(30, 60, 114, 0.1) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Filter Container */
.filter-container {
    background: linear-gradient(145deg, #2d2d2d 0%, #3a3a3a 100%);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 140, 0, 0.1);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 140, 0, 0.2);
}

/* Header Section */
.filter-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 0;
    position: relative;
    border-bottom: 3px solid #ff8c00;
}

/* Vehicle Selector - Single Tab */
.vehicle-selector {
    display: flex;
    padding: 0;
}

.vehicle-option {
    flex: 1;
    position: relative;
}

.vehicle-option input[type="radio"] {
    display: none;
}

.vehicle-option label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    gap: 12px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    transition: all 0.3s ease;
}

.vehicle-option label:hover {
    background: linear-gradient(135deg, #ff9d1f 0%, #ff8200 100%);
    transform: translateY(-2px);
}

.vehicle-icon {
    width: 45px;
    height: 45px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.car-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
}

.vehicle-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Search Toggle Section */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #2d2d2d;
    gap: 15px;
}

.help-icon-wrapper {
    display: flex;
}

.help-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.help-icon svg {
    width: 20px;
    height: 20px;
}

.help-icon:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

/* Toggle Switch */
.toggle-switch {
    flex: 1;
    position: relative;
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 6px;
    cursor: pointer;
    position: relative;
    height: 50px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 2px solid #3a3a3a;
}

.toggle-slider {
    position: absolute;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    border-radius: 25px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: 6px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.5);
}

.toggle-input:checked + .toggle-label .toggle-slider {
    transform: translateX(calc(100% + 6px));
}

.toggle-text-left,
.toggle-text-right {
    flex: 1;
    text-align: center;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.toggle-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.toggle-input:not(:checked) + .toggle-label .toggle-text-left,
.toggle-input:checked + .toggle-label .toggle-text-right {
    color: #fff;
}

.toggle-input:not(:checked) + .toggle-label .toggle-text-left .toggle-icon,
.toggle-input:checked + .toggle-label .toggle-text-right .toggle-icon {
    opacity: 1;
}

/* Tire Display */
.tire-display {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #3a3a3a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.tire-display::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.tire-graphic {
    position: relative;
    width: 250px;
    height: 250px;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.tire-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.tyre-size-view {
    position: absolute;
    top: -81px;
    left: -54px;
    text-align: center;
    color: #ff9000;
    font-weight: 800;
    font-size: 18px;
    width: 400px;
    border-radius: 50%;
    transform: rotate(-53deg);
}

.tyre-size-view span {
    height: 120px;
    position: absolute;
    width: 12px;
    left: 0;
    top: 0;
    transform-origin: bottom center;
}

/* Size Form */
.size-form {
    padding: 0;
}

/* Search Filter Fields Container */
.search-filter-fields-container {
    padding: 15px 25px;
    position: relative;
    background-color: #3d3d3f;
}

.search-filter-fields-container .search-filter-fields {
    width: 100%;
}

.search-filter-fields-container .search-filter-fields .search-filter-item {
    display: flex;
    height: 35px;
    margin-bottom: 15px;
    overflow: hidden;
}

.search-filter-fields-container .search-filter-fields .search-filter-item:last-of-type {
    margin-bottom: 0;
}

.search-filter-fields-container .search-filter-fields .search-filter-item__title,
.search-filter-fields-container .search-filter-fields .search-filter-item__input-field {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    text-align: center;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
}

.search-filter-fields-container .search-filter-fields .search-filter-item__title {
    font-weight: 400;
    color: #fff;
    background-color: #ff9000;
}

.search-filter-fields-container .search-filter-fields .search-filter-item__input-field {
    background-color: #fff;
    font-weight: 100;
}

.search-filter-fields-container .search-filter-fields .search-filter-item__input-field select {
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
    text-align: center;
    text-align-last: center;
    padding: 0 15px 0 10px;
    background: url('https://static.delti.com/static/common_files/images/bottom_arrow.png') 98.5% center no-repeat #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    font-size: 16px;
}

.search-filter-fields-container .search-filter-fields .search-filter-item__input-field select::-ms-expand {
    display: none;
}

.search-filter-fields-container .search-filter-fields .search-filter-item__input-field select:disabled {
    color: #9d9d9d;
}

.search-filter-fields-container .search-filter-fields .search-filter-item__input-field select:hover {
    background-color: #f5f5f5;
}

.search-filter-fields-container .search-filter-fields .search-filter-item__input-field select:focus {
    background-color: #fff;
}

/* Season Selector */
.season-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3d3d3f;
    padding: 0 57px 0 25px;
    margin: 10px 0 10px;
    height: 60px;
    border-top: 2px solid #3a3a3a;
    border-bottom: 2px solid #3a3a3a;
}

.season-option {
    min-width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.season-label {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.season-label:hover {
    transform: scale(1.05);
}

.season-icon {
    width: 55px;
    height: 55px;
    background-image: url("https://static.delti.com/static/tirendo-ebon/common/images/filter-seasons.png");
    background-repeat: no-repeat;
    display: block;
    position: relative;
    transition: all 0.4s ease;
    margin: 0 auto;
}

.season-label::after {
    content: '';
    position: absolute;
    right: -23px;
    top: calc(50% - 7px);
    height: 14px;
    width: 14px;
    background-color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.season-option input[type="radio"]:checked + .season-label::after {
    background-color: #ff9000;
}

.season-option input[type="radio"]:checked + .season-label .season-icon {
    transform: scale(1.1);
}

.summer-icon {
    background-position: center 10px;
}

.winter-icon {
    background-position: center -55px;
}

.allseason-icon {
    background-position: center -119px;
}

/* Submit Section */
.submit-section {
    text-align: center;
}

.search-filter-footer {
    min-height: 67px;
    background-color: #3d3d3f;
}

.submit-btn,
.search-filter-footer__result-button {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    color: #fff;
    border: none;
    height: 100%;
    min-height: 67px;
    display: block;
    margin: 0 auto;
    padding: 10px;
    min-width: 205px;
    max-width: 280px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-transform: uppercase;
    border-radius: 0;
    box-shadow:
        0 8px 25px rgba(255, 140, 0, 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    outline: none;
}

.submit-btn::before,
.search-filter-footer__result-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before,
.search-filter-footer__result-button:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover,
.search-filter-footer__result-button:hover {
    background: linear-gradient(135deg, #ff9d1f 0%, #ff8200 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(255, 140, 0, 0.6),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.submit-btn:active,
.search-filter-footer__result-button:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 5px 20px rgba(255, 140, 0, 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 600px) {
    .filter-container {
        margin: 10px;
        border-radius: 15px;
    }

    .vehicle-label {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .vehicle-icon {
        width: 35px;
        height: 35px;
    }

    .toggle-label {
        height: 45px;
    }

    .toggle-text-left,
    .toggle-text-right {
        font-size: 10px;
    }

    .toggle-icon {
        width: 14px;
        height: 14px;
    }

    .tire-graphic {
        width: 180px;
        height: 180px;
    }

    .tyre-size-view {
        display: none !important;
    }

    .search-filter-fields-container {
        padding: 15px 20px;
    }

    .search-filter-fields-container .search-filter-fields .search-filter-item {
        height: 35px;
        margin-bottom: 12px;
    }

    .search-filter-fields-container .search-filter-fields .search-filter-item__title,
    .search-filter-fields-container .search-filter-fields .search-filter-item__input-field {
        font-size: 14px;
    }

    .submit-btn {
        width: 100%;
        padding: 16px 40px;
        font-size: 16px;
    }

    .season-icon {
        width: 45px;
        height: 45px;
    }

    .season-selector {
        padding: 0 40px 0 12px;
    }

    .season-label::after {
        right: -5px;
    }
}
