form{
    line-height: 1;
}

.underline{
    text-decoration: underline;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
}

input.form-control.error {
    border: 1px solid #E53419;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E53419' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' fill='none'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01' y1='16' y2='16' /></svg>");
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: right 12px center;
    padding-right: 48px; /* miesto pre ikonu */
}

textarea.form-control.error {
    border: 1px solid #E53419;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E53419' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' fill='none'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01' y1='16' y2='16' /></svg>");
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: right 12px center;
    padding-right: 48px; /* miesto pre ikonu */
}

.form-control-trigger {
    position: relative;
}
.form-control-trigger span.input-span{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}
.form-control-trigger span.input-span-left{
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 14px;
}
input.right-align-input{
    text-align: right;
    padding-left: 48px;
    padding-right: 16px;
}

.form-control-trigger input.form-control.error {
    border: 1px solid #E53419;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E53419' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' fill='none'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01' y1='16' y2='16' /></svg>");
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: left 12px center;
    padding-left: 44px; /* miesto pre ikonu */
}
.form-control-trigger.span-left input.form-control.error {
    border: 1px solid #E53419;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E53419' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' fill='none'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01' y1='16' y2='16' /></svg>");
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: right 12px center;
    padding-right: 44px; /* miesto pre ikonu */
}

.form-control-trigger input.right-align-input.error{
    border: 1px solid #E53419;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E53419' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' fill='none'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01' y1='16' y2='16' /></svg>");
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: right 12px center;
    padding-right: 44px; /* miesto pre ikonu */
}

.form-control-trigger.span-left input.form-control.error {
    border: 1px solid #E53419;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E53419' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' fill='none'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01' y1='16' y2='16' /></svg>");
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: right 12px center;
    padding-right: 44px; /* miesto pre ikonu */
}

div.error {
    border-bottom: 1px solid #E53419;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E53419' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' fill='none'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01' y1='16' y2='16' /></svg>");
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: right 0px center;
    padding-bottom: 4px;
    padding-right: 32px;
}

.form-control-div.error {
    border: 1px solid #E53419;
    background-position: right 12px center;
}

.check-column-group.error {
    border-left: 1px solid #E53419;
    border-bottom-left-radius: 4px;
    padding-left: 4px;
    margin-left: -4px;
}

.error-message{
    color: #E53419;
    margin-top: 4px;
    margin-left: 2px;
    font-size: 11px;
}

.form-subtitle {  
    font-size: 14px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-48 {
    margin-bottom: 48px;
}

.pt-8 {
    padding-top: 8px;
}

.pt-16 {
    padding-top: 16px;
}

.pt-24 {
    padding-top: 24px;
}

.pt-32 {
    padding-top: 32px;
}

.pt-48 {
    padding-top: 48px;
}
.mt-4 {
    margin-top: 4px;
}
.mt-8 {
    margin-top: 8px;
}
.mt-minus8 {
    margin-top: -8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.mt-48 {
    margin-top: 48px;
}

.p-16{
    padding: 16px;
}
.p-8{
    padding: 8px;
}

.h-input{
    height: 46px;
}
.h-3input{
    height: 74px;
}
.h-3input-p{
    height: 122px;
}
.flex{
    display: flex;
}

.flex-wrap{
    display: flex;
    flex-wrap: wrap;
}

.flex-end{
    display: flex;
    justify-content: end;
}
.flex-row{
    display: flex;
    flex-direction: row;
}
.flex-column{
    display: flex;
    flex-direction: column;
}

.align-items-end{
    align-items: end;
}
.align-items-center{
    align-items: center;
}
.align-items-stretch{
    align-items: stretch;
}


.justify-content-between{
    justify-content: space-between;
}

.gap-8{
    gap: 8px !important;
}

.gap-12{
    gap: 12px !important;
}

.gap-16{
    gap: 16px;
}

.gap-24{
    gap: 24px !important;
}
.gap-64{
    gap: 64px !important;
}

.flex-column-center{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex-center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.center{
    margin-left: 50%;
    transform: translateX(-50%)
}

.flex-between{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.flex-2, .flex-3, .flex-4, .flex-5, .flex-6 {
    display: flex;
    gap: 16px;
    flex-direction: row;
    align-items: start;
}

.flex-2 > div{
    flex-basis: 50%; 
}

.flex-3 > div{
    flex-basis: 33.33%;
}

.flex-4 > div{
    flex-basis: 25%;
}

.flex-5 > div{
    flex-basis: 20%;
}

.flex-6 > div{
    flex-basis: 16.66%;
}

.form-control-div {
    line-height: 1;
    border: none;
    color: #15234A;
    background: #FFFFFF;
    padding: 24px 16px;
    border-radius: 4px;
    box-shadow: 0px 0px 18px #0030871A;
    width: 100%;
    font-size: 12px;
    cursor: pointer;
}

.form-control {
    height: 46px;
    line-height: 1;
    border: none;
    color: #353F91;
    background: #FFFFFF;
    padding: 16px;
    border-radius: 4px;
    box-shadow: 0px 0px 18px #0030871A;
    width: 100%;
    font-size: 14px;
}

.form-control-trigger .form-control:not(.right-align-input) {
    padding-right: 48px;
}

/* Text farba placeholderu */
.form-control::placeholder {
    color: #0030876A;
}

/* Focus efekt */
.form-control:focus {
    outline: none;
}

.form-label{
    color: #15234A;
    font-weight: 400 ;
    margin-bottom: 8px;
    font-size: 12px;
    display: block;
}

.radio-row-group{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.choice{
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-control-textarea{
    resize: none;
}

.radio-label {
    color: #353F91;
    font-weight: 500;
    font-size: 20px;
    margin: 0px;
}

.radio-choice-label{  
    color: #353F91;
    font-size: 14px;
    margin-bottom: 0px;
}


input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;

    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 2px solid #353F91;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    margin-right: 4px;
    padding: 0px;

    background: transparent;
}

input[type="radio"]:checked {
    background: #353F91;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 24px;  
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 2px solid #353F91;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    margin-right: 4px;
    padding: 0px;

    background: transparent;
}

input[type="checkbox"]:checked {
    background: #353F91;
}

.divider{
    margin-bottom: 48px;
    height: 2px;
    width: 100%;
    background: #BECAE9;
}

.divider-blue{
    height: 2px;
    width: 100%;
    background: #353F91;
}

.check-column-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.submit-button{
    background-color: #E53419;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0px;
    text-align: center;
}

.remove-link-btn{
    background-color: transparent;
    color: #E5341980;
    padding: 8px;
    border-radius: 8px;
}

.remove-link-btn:hover{
    color: #E53419;
}

.icon-button{
    padding: 4px 16px;
    color: #273473;
}

.vertical-middle{
    align-items: center;
}

.red-info{
    position: relative;
    cursor: pointer;
    width: 12px;
    height: 12px;
    align-self: start;
    color: #E53419;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #E53419;
    font-size: 8px;
    font-weight: 600;
    transform: translateY(-5px)
}


/* bublina */
.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.95) translateY(-8px);
    background: #FFF;
    color: #353F91;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

/* TROJUHOLNÍK */
.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #FFF;
}

/* hover */
.red-info:hover .tooltip-text {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(-8px);
    filter: drop-shadow(0px 0px 18px #0030871A);
}

#yes_choice,
#no_choice {
    transition: opacity .3s ease;
    display: none;
}

.reset-icon{
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315234A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/><path d='M3 3v5h5'/></svg>");
    background-repeat: no-repeat;
    background-position: center center;
}

.file-preview-item {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 8px;
    box-shadow: 0px 0px 18px #0030871A;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.remove-file {
    position: absolute;
    top: 0px;
    right: 0px;
    transform: translateX(50%) translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    z-index: 5;
    border: none;
    background: #E53419;
    color: #FFFFFF;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg class='lucide lucide-x' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6 6 18'/><path d='m6 6 12 12'/></svg>");
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: center center;
}

.result-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.car-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-card-title{
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-card-text {
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
}

.car-card-price{
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

@media (max-width: 850px) {
    .mobile-text {
        display: block;
    }

    .only-mobile-text {
        display: inline-block;
    }

    .pc-text {
        display: none;
    }
}

@media (max-width: 900px) {
    .flex-between{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .flex-2, .flex-3, .flex-4, .flex-5, .flex-6 {
        display: flex;
        gap: 16px;
        flex-direction: column;
        align-items: stretch;
    }


    .radio-row-group{
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 16px;
    }
}


/* ===== CUSTOM SELECT ===== */

.custom-select {
    position: relative;
}


.custom-select.disable-search .custom-search {
    display: none;
}

.custom-select-trigger {
    position: relative;
    cursor: pointer;
}

.custom-select-trigger input {
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-40%);
    pointer-events: none;
    transition: transform .25s ease;
}

.custom-select.open .select-arrow {
    transform: translateY(-60%) rotate(180deg);
}

.custom-options {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0px 0px 18px #0030871A;
    display: none;
    z-index: 20;
    overflow: hidden;
}

.custom-select.open .custom-options {
    display: block;
}

.custom-search {
    width: calc(100% - 16px);
    margin: 8px;
    padding: 8px 16px;
    font-size: 14px;
    height: 30px;
    border: none;
    border-bottom: 1px solid #BECAE9;
}

.custom-search:focus {
    outline: none;
    border-bottom: 1px solid #353F91;
}

.clear-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.custom-option {
    padding: 16px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    gap: 8px;
}

.custom-option:hover {
    background: #BECAE9;
}

.custom-option:not(.selected)::before {
    content: " ";
    width: 16px;
    height: 16px;
    border: 2px solid #353F91;
    border-radius: 4px;
    display: inline-block;
    background: transparent;
}
.custom-option.selected::before {
    content: " ";
    width: 16px;
    height: 16px;
    border: 2px solid #353F91;
    border-radius: 4px;
    display: inline-block;
    background: #353F91;
}

.custom-select.has-value:not(.disable-clear) .clear-btn {
    display: block;
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    color: #353F91;
    font-weight: 600;
}


/* ===== ALERT ===== */



.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.alert-overlay-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 12px;
    display: none;
    align-items: start;
    justify-content: end;
    z-index: 9999;
}

.alert-box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: pop 0.25s ease-out;
}

@keyframes pop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.alert-icon {
    margin-bottom: 10px;
    animation: bounce 0.8s ease-out;
}

.alert-icon.success {
    color: #28a745;
}

.alert-icon.mistake {
    color: #dc3545;
}

@keyframes bounce {
    0% {
        transform: translateY(50px) scale(0.3);
    }
    30% {
        transform: translateY(-25px) scale(0.6);
    }
    50% {
        transform: translateY(10px) scale(1.1);
    }
    70% {
        transform: translateY(-5px) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* ===== PHOTO UPLOAD ===== */

.photo-picker {
    cursor: pointer;
}

.file-preview-item.is-uploading {
    opacity: .5;
}

/* ===== RECLAIM ===== */

.form-text {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
}

.form-control-textarea-height-auto {
    height: auto;
    resize: vertical;
}

.pdf-preview {
    display: none;
    position: relative;
    width: 100%;
    height: 700px;
    border: 1px solid #ccc;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .form-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .pdf-preview {
        height: 450px;
    }
}
