/* Interest Popup */
.interest-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.interest-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.interest-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.interest-popup-inner {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 1020px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(24px);
    transition: transform 0.25s ease;
}

.interest-popup.is-open .interest-popup-inner {
    transform: translateY(0);
}

.interest-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #a5acbf;
    padding: 4px;
    line-height: 1;
    z-index: 1;
    transition: color 0.2s;
}

.interest-popup-close:hover {
    color: #262626;
}

.interest-popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left panel */
.interest-popup-left {
    background: #f8f9fb;
    border-radius: 20px 0 0 20px;
    padding: 48px 40px;
}

.interest-popup-title {
    font-size: 26px;
    font-weight: 900;
    color: #262626;
    margin: 0 0 16px;
    line-height: 1.25;
}

.interest-popup-desc {
    font-size: 14px;
    color: #a5acbf;
    line-height: 1.6;
    margin: 0 0 12px;
}

.interest-popup-services-title {
    font-size: 14px;
    font-weight: 700;
    color: #262626;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 28px 0 16px;
}

.interest-popup-services {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interest-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
}

.interest-popup-services-hint {
    font-size: 14px;
    color: #a5acbf;
    margin: -8px 0 12px;
}

.interest-service-check {
    flex-shrink: 0;
    display: flex;
}

.interest-service-check input {
    width: 18px;
    height: 18px;
    accent-color: #3dcb98;
    cursor: pointer;
}

.interest-service-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.interest-service-content strong {
    font-size: 13px;
    font-weight: 700;
    color: #262626;
    line-height: 1.3;
}

.interest-service-content span {
    font-size: 12px;
    color: #a5acbf;
    line-height: 1.4;
}

.interest-service-link {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #3dcb98;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.interest-service-link:hover {
    opacity: 0.75;
}

/* Right panel — form */
.interest-popup-right {
    padding: 48px 40px;
}

.interest-form-title {
    font-size: 18px;
    font-weight: 900;
    color: #262626;
    margin: 0 0 24px;
}

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

.interest-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.interest-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.interest-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #262626;
}

.interest-form-field .req {
    color: #3dcb98;
    margin-left: 2px;
}

.interest-form-field input,
.interest-form-field textarea {
    border: 1.5px solid #e8eaef;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #262626;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    resize: none;
}

.interest-form-field input:focus,
.interest-form-field textarea:focus {
    border-color: #3dcb98;
}

.interest-form-field input::placeholder,
.interest-form-field textarea::placeholder {
    color: #c4c9d6;
}

.interest-form-feedback {
    font-size: 14px;
    border-radius: 8px;
    padding: 0;
    min-height: 0;
}

.interest-form-feedback--success {
    color: #1a9e6e;
    background: #edfaf4;
    padding: 10px 14px;
}

.interest-form-feedback--error {
    color: #c0392b;
    background: #fdf0ee;
    padding: 10px 14px;
}

.interest-form-submit {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.interest-btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.interest-form-submit.is-loading .interest-btn-loader {
    display: block;
}

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

.interest-form-note {
    font-size: 12px;
    color: #a5acbf;
    margin: 0;
    text-align: center;
}

body.popup-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 860px) {
    .interest-popup-body {
        grid-template-columns: 1fr;
    }

    .interest-popup-left {
        border-radius: 20px 20px 0 0;
        padding: 36px 28px 28px;
    }

    .interest-popup-right {
        padding: 28px 28px 36px;
    }
}

@media (max-width: 540px) {
    .interest-popup {
        padding: 0;
        align-items: flex-end;
    }

    .interest-popup-inner {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
    }

    .interest-popup-left {
        border-radius: 20px 20px 0 0;
        padding: 28px 20px 20px;
    }

    .interest-popup-right {
        padding: 20px 20px 28px;
    }

    .interest-form-row {
        grid-template-columns: 1fr;
    }
}

/* -------- Typ kupujúceho + podmienené polia (okres / IČO) ([C11]) -------- */
.interest-buyer-type {
    border: 0;
    padding: 0;
    margin: 0;
}

.interest-buyer-type legend {
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #262626;
}

.interest-buyer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.interest-buyer-option {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 140px;
    padding: 12px 14px;
    border: 1.5px solid #e8eaef;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s;
}

.interest-buyer-option:has(input:checked) {
    border-color: #3dcb98;
}

.interest-buyer-option input {
    accent-color: #3dcb98;
    margin: 0;
}

.interest-form-field select {
    border: 1.5px solid #e8eaef;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #262626;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.interest-form-field select:focus {
    border-color: #3dcb98;
}

.interest-form-field[hidden] {
    display: none;
}
