.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: auto;
    padding: 20px;
}

.modal-content {
    background: #1c1c1c;
    max-width: 1200px;
    width: 90%;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-left, .modal-right {
    flex: 1;
    min-width: 300px;
    margin: 10px;
}

.modal-left h2 {
    color: white;
    margin-bottom: 20px;
}

.modal-left h2 span {
    font-weight: bold;
}

.input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.input-wrapper input {
    flex: 1;
    padding: 10px;
 /*   margin-right: 10px; */
    border-radius: 4px;
    border: none;
    max-width: 300px;
}

.currency-selected {
    display: flex;
    align-items: center;
}

.currency-selected img {
    width: 24px;
    margin-right: 5px;
}

.exchange-rate {
    color: orange;
    font-size: 18px;
    margin: 15px 0;
}

.cash-button {
    background-color: #f5a800;
    border: none;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 160px;
    margin-bottom: 20px;
}

.cash-button img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.cash-button span {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.cash-button:hover {
    background-color: #e59900;
}

.verification-block img {
    max-width: 100%;
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-size: 14px;
    color: #fff;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.submit-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #45a049;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-start;
        padding: 20px 10px;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin: 0 auto;
        height: 150%;
        max-height: none;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-left, .modal-right {
        width: 100%;
        margin: 0 0 20px 0;
    }

    .modal-left h2 {
        font-size: 20px;
        text-align: center;
    }

    .input-wrapper input {
        width: 100%;
        max-width: 100%;
    }

    .cash-button {
        width: 100%;
        padding: 15px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .cash-button img {
        width: 30px;
        height: 30px;
        margin: 0;
    }

    .cash-button span {
        font-size: 14px;
    }

    .exchange-rate {
        font-size: 16px;
        text-align: center;
    }

    .verification-block img {
        width: 100%;
        max-width: 250px;
        margin: 20px auto;
        display: block;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
    }

    .submit-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        margin-top: 30px;
    }
}

/* Спасибо */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.success-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.success-modal-content h2 {
    font-size: 24px;
    color: black; /* Чёрный цвет заголовка */
    margin-bottom: 15px;
}

.success-modal-content p {
    font-size: 16px;
    color: black; /* Чёрный цвет текста */
    margin-bottom: 20px;
}

.success-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: black; /* Чёрный крестик */
}

.success-modal-button {
    margin-top: 10px;
    padding: 12px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.success-modal-button:hover {
    background-color: #45a049;
}
/**************/