/* ============================================
   VISA POPUP MODAL STYLES
   ============================================ */

.visa-popup-overlay {
    --visa-popup-viewport-gap: clamp(20px, 4vh, 40px);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(81, 81, 81, 0.4);
    z-index: 20000;
    align-items: flex-start;
    justify-content: center;
    padding: var(--visa-popup-viewport-gap) 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.visa-popup-overlay.active {
    display: flex;
}

.visa-popup-container {
    width: min(864px, calc(100vw - 40px));
    max-height: calc(100dvh - (var(--visa-popup-viewport-gap) * 2));
    overflow: hidden;
}

.visa-popup-card {
    background: white;
    border: 1px solid #037c84;
    border-radius: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    display: flex;
    position: relative;
    width: 100%;
    max-height: calc(100dvh - (var(--visa-popup-viewport-gap) * 2));
    overflow: hidden;
}

.popup-close {
    position: absolute;
    top: 17px;
    right: 17px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: scale(1.1);
}

.popup-image-side {
    width: 387px;
    flex-shrink: 0;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
}

.popup-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-form-side {
    flex: 1;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
}

.popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #d31725;
    margin-bottom: 20px;
    text-align: center;
}

.popup-description {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 24px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.popup-description p {
    margin-bottom: 12px;
}

.popup-description ul {
    list-style: disc;
    padding-left: 21px;
    margin: 12px 0;
}

.popup-description li {
    margin-bottom: 8px;
}

.popup-visa-form {
    background: linear-gradient(180deg, #037c84 0%, #025257 100%);
    padding: 31px 24px;
    border-radius: 8px;
    margin-top: auto;
}

.popup-visa-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.popup-visa-form .form-row.form-row-single {
    grid-template-columns: 1fr;
}

.popup-visa-form .form-group {
    display: flex;
    flex-direction: column;
}

.popup-visa-form label {
    font-size: 14px;
    color: white;
    margin-bottom: 8px;
}

.popup-visa-form .form-control {
    width: 100%;
    height: 34px;
    border: none;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.popup-visa-form .btn-block {
    width: 100%;
    margin-top: 8px;
}

.popup-visa-form .btn-danger {
    background: linear-gradient(135deg, #0a9ca6 0%, #08727f 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 40px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(6, 60, 72, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.popup-visa-form .btn-danger:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 12px 24px rgba(6, 60, 72, 0.28);
}

/* Responsive */
@media (max-width: 768px) {
    .visa-popup-overlay {
        --visa-popup-viewport-gap: 12px;
        padding: var(--visa-popup-viewport-gap) 12px;
        align-items: flex-start;
    }

    .visa-popup-container {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - (var(--visa-popup-viewport-gap) * 2));
    }

    .visa-popup-card {
        flex-direction: column;
        max-height: calc(100dvh - (var(--visa-popup-viewport-gap) * 2));
        overflow-y: auto;
    }

    .popup-image-side {
        width: 100%;
        height: 160px;
        border-radius: 10px 10px 0 0;
    }

    .popup-form-side {
        padding: 16px 14px 18px;
    }

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