/* ===== DOWNLOAD GATE MODAL ===== */

.download-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.download-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.download-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.download-modal-overlay.active .download-modal {
    transform: translateY(0);
}

.download-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f4f8;
    color: #1a1f36;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.download-modal-close:hover {
    background: #00b6de;
    color: white;
}

.download-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 8px;
    padding-right: 32px;
}

.download-modal-subtitle {
    font-size: 14px;
    color: #5a6370;
    margin-bottom: 24px;
    line-height: 1.5;
}

.download-modal-subtitle strong {
    color: #1a1f36;
}

.download-modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.download-modal-form .form-group input,
.download-modal-form .form-group select {
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    color: #1a1f36;
    transition: all 0.35s ease;
    background: #f0f4f8;
    line-height: 1.5;
    width: 100%;
}

.download-modal-form .form-group select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1f36' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.download-modal-form .form-group input:focus,
.download-modal-form .form-group select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px #00b6de;
}

.download-modal-form .form-group input::placeholder {
    color: #a0a8b0;
}

.download-modal-form .form-group.invalid input,
.download-modal-form .form-group.invalid select {
    border: 2px solid #ef4444;
    background: #fff5f5;
}

.download-modal-form .form-group.invalid input:focus,
.download-modal-form .form-group.invalid select:focus {
    background: white;
    box-shadow: 0 0 0 2px #ef4444;
}

.download-modal-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: -12px;
    margin-bottom: 16px;
    display: none;
}

.download-modal-form .form-group.invalid + .download-modal-error {
    display: block;
}

.download-modal-submit {
    width: 100%;
    padding: 14px 32px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.download-modal-submit:hover {
    background: #00b6de;
    transform: translateY(-2px);
}

.download-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.download-modal-privacy {
    font-size: 12px;
    color: #a0a8b0;
    text-align: center;
    margin-top: 16px;
}

.download-modal-success {
    text-align: center;
    padding: 20px 0;
}

.download-modal-success i {
    font-size: 48px;
    color: #00b6de;
    margin-bottom: 16px;
    display: block;
}

.download-modal-success h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 8px;
}

.download-modal-success p {
    font-size: 14px;
    color: #5a6370;
}

body.download-modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .download-modal {
        padding: 28px 20px;
    }

    .download-modal-title {
        font-size: 19px;
    }
}
