
.par-page {
    min-width: 320px;
    position: relative;
}

.par-search-form {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    text-align: start;
}

.par-search-form__form {
    background: #ffffff;
    border-radius: 30px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.par-search-form__footer {
    margin-top: -23px;
}
.par-search-form__vehicle-types {
    display: flex;
    gap: 28px;
    margin-bottom: 14px;
}

.par-search-form__fields {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.par-search-form__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.par-search-form__consent {
    flex: 1;
}

.par-search-form__contact-types {
    display: flex;
    gap: 21px;
}

.par-radio-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.par-radio-button__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.par-radio-button__custom {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: #dfdee3;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.par-radio-button__input:checked + .par-radio-button__custom {
    background: #288dff;
}

.par-radio-button__input:checked + .par-radio-button__custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #f9fafb;
    border-radius: 3px;
}

.par-radio-button__label {
    font-weight: 500;
    font-size: 13px;
    line-height: 24px;
    color: #171d23;
}

.par-radio-button--small .par-radio-button__label {
    font-size: 14px;
    color: #171d23;
}

.par-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.par-form-field:nth-child(1) {
    max-width: 240px;
}

.par-form-field:nth-child(2) {
    max-width: 240px;
}

.par-form-field:nth-child(3) {
    max-width: 289px;
    width: 289px;
    flex: 0 0 289px;
}

.par-form-field:nth-child(4) {
    max-width: 254px;
}

.par-form-field__label {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #787c7f;
    text-align: start;
}

.par-form-field__wrapper {
    position: relative;
}

.par-form-field__error {
    bottom: -18px;
    left: 0;
    font-size: 12px;
    line-height: 16px;
    color: #ef4444;
    display: none;
}

.par-form-field__wrapper--error .par-form-field__error {
    display: block;
}

.par-form-field__wrapper--error .par-select__trigger,
.par-form-field__wrapper--error .par-input-with-icon {
    border-color: #ef4444;
}

.par-form-field__error-icon {
    position: absolute;
    right: 12px;
    top: 35%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #ef4444;
    display: none;
    pointer-events: none;
}

.par-form-field__wrapper--error .par-form-field__error-icon {
    display: block;
}

.par-select {
    position: relative;
    width: 100%;
}

.par-select__trigger {
    width: 100%;
    height: 40px;
    background: #f9fafb;
    border: 1px solid #8f9295;
    border-radius: 6px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #171d23;
    cursor: pointer;
    transition: border-color 0.2s ease;
    text-align: left;
}

.par-select__icon {
    width: 24px;
    height: 24px;
    color: #8f9295;
    flex-shrink: 0;
}

.par-select__value {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.par-select__value--placeholder {
    color: #171d23;
}

.par-select__arrow {
    width: 24px;
    height: 24px;
    color: #555657;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.par-select--open .par-select__arrow {
    transform: rotate(180deg);
}

.par-select__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.par-select__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.par-select--open .par-select__dropdown {
    display: block;
}

.par-select__option {
    padding: 10px 12px;
    font-size: 16px;
    line-height: 24px;
    color: #171d23;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.par-select__option:hover {
    background: #f9fafb;
}

.par-input-with-icon {
    width: 100%;
    height: 40px;
    background: #f9fafb;
    border: 1px solid #8f9295;
    border-radius: 6px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease;
}

.par-input-with-icon__icon {
    width: 24px;
    height: 24px;
    color: #8f9295;
    flex-shrink: 0;
}

.par-input-with-icon__input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #171d23;
    outline: none;
    min-width: 0;
}

.par-input-with-icon__input::placeholder {
    color: #8f9295;
}

.par-button {
    height: 40px;
    border: none;
    border-radius: 7px;
    padding: 0 24px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: 28px;
}

.par-button--primary {
    background: #288dff;
    color: #f9fafb;
    min-width: 206px;
}

.par-button--primary:hover {
    background: #1d7ae6;
}

.par-button--primary:active {
    background: #1666cc;
}

.par-button--primary:disabled {
    background: #dfdee3;
    cursor: not-allowed;
}

.par-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.par-checkbox__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.par-checkbox__custom {
    width: 15px;
    height: 15px;
    border: 1px solid #787c7f;
    border-radius: 2px;
    background: #ffffff;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.par-checkbox__input:checked + .par-checkbox__custom {
    background: #288dff;
    border-color: #288dff;
}

.par-checkbox__input:checked + .par-checkbox__custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.par-checkbox--error .par-checkbox__custom {
    border-color: #ef4444;
}

.par-checkbox__label {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #666666;
}

.par-checkbox__link {
    color: #666666;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.par-checkbox__link:hover {
    color: #288dff;
}

.par-checkbox__error {
    position: absolute;
    bottom: -18px;
    left: 24px;
    font-size: 12px;
    line-height: 16px;
    color: #ef4444;
    display: none;
}

.par-checkbox--error .par-checkbox__error {
    display: block;
}

.par-form-field__wrapper--error .par-select__arrow-data {
    display: none !important;
}

.par-select__arrow-data {
    display: block;
}

.container.lock-plugin.range-plugin {
    z-index: 1001 !important;
    top: 44px !important;
    left: -12px !important;
    position: relative;
}

.par-select__value--placeholder {
    color: #6c757d;
}

.par-select__value {
    color: #212529;
}
.par-mobile-dates {
    display: none;
}

.par-rental-date {
    position: relative;
    width: 100%;
    height: 53px;
    background: #f9fafb;
    border: 1px solid #8f9295;
    border-radius: 6px;
    padding: 0 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.par-date-label {
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
    color: #787c7f;
}

.par-start-label {
    position: absolute;
    top: 4px;
    left: 12px;
}

.par-end-label {
    position: absolute;
    top: 4px;
    right: 12px;
    text-align: right;
}

.par-date-value {
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #000000;
}

.par-start-value {
    position: absolute;
    top: 24px;
    left: 12px;
}

.par-end-value {
    position: absolute;
    top: 24px;
    right: 12px;
    text-align: right;
}

.par-duration-badge {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 61px;
    height: 21px;
    background: #f4f7fc;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.par-duration-text {
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
    color: #787c7f;
}

.par-form-field__wrapper--error .par-rental-date {
    border-color: #ef4444;
}

@media screen and (max-width: 1440px) {
    .par-search-form {
        max-width: 1200px;
    }

    .par-search-form__fields {
        gap: 15px;
    }

    .par-form-field:nth-child(1),
    .par-form-field:nth-child(2) {
        max-width: 170px;
    }

    .par-form-field:nth-child(3) {
        max-width: 260px;
    }

    .par-form-field:nth-child(4) {
        max-width: 230px;
        margin-top: -20px;
    }
    .par-search-form__footer {
        margin-top: 0;
    }
    .container.lock-plugin.range-plugin {
        left: -23px !important;
    }
}

@media screen and (max-width: 1200px) {
    .par-search-form {
        max-width: 100%;
    }

    .par-search-form__form {
        padding: 25px 30px;
    }

    .par-search-form__fields {
        flex-wrap: wrap;
    }

    .par-form-field:nth-child(1),
    .par-form-field:nth-child(2),
    .par-form-field:nth-child(3),
    .par-form-field:nth-child(4) {
        max-width: calc(50% - 10px);
        flex: 1 1 calc(50% - 10px);
    }

    .par-button {
        width: 100%;
        margin-top: 0;
    }
    .container.lock-plugin.range-plugin {
        left: 0 !important;
    }
    .par-form-field:nth-child(4) {
        margin-top: 0;
    }
}

@media screen and (max-width: 768px) {
    .par-search-form {
        margin-top: 20px;
        padding: 0 15px;
    }

    .par-search-form__form {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .par-search-form__vehicle-types {
        margin-bottom: 20px;
        justify-content: center;
    }

    .par-search-form__fields {
        gap: 15px;
        flex-direction: column;
    }

    .par-form-field:nth-child(1),
    .par-form-field:nth-child(2),
    .par-form-field:nth-child(3),
    .par-form-field:nth-child(4) {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .par-form-field__label {
        text-align: left;
        margin-bottom: 4px;
    }

    .par-search-form__footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        margin-top: 10px;
    }

    .par-search-form__consent {
        order: 2;
    }

    .par-search-form__contact-types {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .par-checkbox__label {
        font-size: 12px;
    }

    .par-checkbox__error {
        left: 0;
        bottom: -20px;
    }
}

@media screen and (max-width: 480px) {

    .par-desktop-dates {
        display: none;
    }

    .par-mobile-dates {
        display: block;
    }

    .par-rental-date {
        height: 53px;
    }

    .par-form-field:nth-child(1),
    .par-form-field:nth-child(2) {
        display: none;
    }

    .par-form-field:nth-child(3) .par-form-field__label,
    .par-form-field:nth-child(4) .par-form-field__label {
        display: none;
    }

    .par-form-field:nth-child(3),
    .par-form-field:nth-child(4) {
        max-width: 100%;
        flex: 1 1 100%;
        width: 100%;
    }

    .par-search-form__fields {
        flex-direction: column;
        gap: 10px;
    }

    .par-button {
        width: 100%;
        margin-top: 6px;
    }
    .par-search-form__form {
        padding: 16px 13px;
    }
    .par-search-form__vehicle-types {
        margin-bottom: 10px;
    }
    .par-search-form__vehicle-types {
        gap: 15px;
    }

    .par-select__trigger,
    .par-input-with-icon {
        height: 44px;
        font-size: 14px;
    }

    .par-button {
        height: 44px;
        font-size: 13px;
    }

    .par-radio-button__label {
        font-size: 13px;
    }

    .par-checkbox__label {
        font-size: 13px;
    }
    .par-checkbox__error {
        bottom: -24px;
        padding-bottom: 12px;
        left: 24px;
    }
    .container.lock-plugin.range-plugin {
        top: 205px !important;
        left: 27px !important;
        max-width: 88% !important;
    }

    .par-search-form__vehicle-types,
    .par-search-form__contact-types {
        justify-content: flex-start;
        width: 100%;
    }

    .par-search-form__vehicle-types {
        justify-content: flex-start;
    }

    .par-search-form__consent {
        order: 2;
        width: 100%;
    }

    .par-select__arrow {
        display: none;
    }

    .par-form-field__error-icon {
        display: none !important;
    }
}
@media screen and (min-width: 481px) {
    .par-mobile-dates {
        display: none;
    }

    .par-desktop-dates {
        display: block;
    }
}
@supports (-webkit-appearance: none) {
    .par-select__trigger,
    .par-input-with-icon__input {
        -webkit-appearance: none;
    }
}

@supports (-moz-appearance: none) {
    .par-select__trigger,
    .par-input-with-icon__input {
        -moz-appearance: none;
    }
}

/* Стили для успешного попапа */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.success-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.success-popup__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: 500px;
    height: 500px;
    background: #fefefe;
    border-radius: 1rem;
    padding: 0;
    border: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    animation: popupFadeIn 0.2s ease-out;
}

.success-popup__message {
    position: absolute;
    top: 195px;
    left: 50%;
    transform: translateX(-50%);
    width: 272px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', Helvetica;
    font-weight: normal;
    color: #171d23;
    font-size: 16px;
    text-align: center;
    line-height: 20px;
}

.success-popup__title {
    position: absolute;
    top: 164px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', Helvetica;
    font-weight: 600;
    color: #171d23;
    font-size: 24px;
    line-height: 24px;
    white-space: nowrap;
}

.success-popup__subtitle {
    position: absolute;
    top: 295px;
    left: 190px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', Helvetica;
    font-weight: normal;
    color: #666666;
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
}

.success-popup__btn {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    width: 141px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    position: absolute;
    top: 325px;
    background: #288dff;
    border-radius: 7px;
    border: none;
    cursor: pointer;
}

.success-popup__btn:hover {
    background: #1d7ae6;
}

.success-popup__btn--whatsapp {
    left: 100px;
}

.success-popup__btn--telegram {
    left: 264px;
}

.success-popup__btn-icon {
    width: 20px;
    height: 20px;
}

.success-popup__btn-text {
    font-family: 'Open Sans', Helvetica;
    font-weight: 600;
    font-size: 13px;
    color: #f9fafb;
    white-space: nowrap;
}

.success-popup__notice {
    position: absolute;
    top: 385px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    font-family: 'Open Sans', Helvetica;
    font-weight: normal;
    color: rgba(62, 67, 72, 0.5);
    font-size: 14px;
    text-align: center;
    line-height: 15px;
}

.success-popup__icon {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 84px;
}

.success-popup__close {
    position: absolute;
    right: 16px;
    top: 16px;
    border-radius: 4px;
    opacity: 0.7;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.success-popup__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.success-popup__close svg {
    width: 24px;
    height: 24px;
    color: #666;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Адаптивность для попапа */
@media screen and (max-width: 600px) {
    .success-popup__content {
        width: 90%;
        height: auto;
        min-height: 400px;
        padding: 20px;
    }

    .success-popup__message,
    .success-popup__title,
    .success-popup__subtitle,
    .success-popup__btn,
    .success-popup__notice,
    .success-popup__icon {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 10px auto;
        text-align: center;
    }

    .success-popup__btn {
        position: relative;
        margin: 10px auto;
    }

    .success-popup__btn--whatsapp,
    .success-popup__btn--telegram {
        left: auto;
    }

    .success-popup__icon {
        margin: 20px auto;
        display: block;
    }

    .success-popup__message {
        width: 100%;
    }

    .success-popup__notice {
        width: 100%;
    }
}
    @media screen and (max-width: 480px) {
    .success-popup__message {
    margin-bottom: 30px;
    }
        .success-popup__content {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 20px 20px;
        }

        .success-popup__icon {
            order: 1;
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            margin: 0 auto 20px;
            display: block;
        }

        .success-popup__title {
            order: 2;
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            margin: 0 auto 10px;
            text-align: center;
        }

        .success-popup__message {
            order: 3;
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            margin: 0 auto 20px;
            text-align: center;
            width: 100%;
        }

        .success-popup__subtitle {
            order: 4;
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            margin: 10px auto;
            text-align: center;
            width: 100%;
        }

        .success-popup__btn {
            order: 5;
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            margin: 5px auto;
        }

        .success-popup__notice {
            order: 6;
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            margin: 20px auto 0;
            text-align: center;
            width: 100%;
        }
}
.par-page input[type="tel"].par-input-with-icon__input {
    color: #171d23 !important;
}
