
/* ---- Hero / price widget --------------------------------------------- */
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.price-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.price-info #btc-price {
    color: white !important;
    font-size: 21px !important;
    font-weight: bold;
}

.price-widget {
    width: 400px;
    max-width: 100%;
    height: 200px;
    position: relative;
}

.price-widget__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.price-info {
    position: absolute;
    padding: 20px;
}

.price-change {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-change .up {
    color: #2ecc71;
}

.price-change .down {
    color: #e74c3c;
}

.cta-row {
    margin-top: 15px;
}

.cta-row__left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    color: #fff;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--buy {
    background-color: #2ecc71;
}

.btn--sell {
    background-color: #e74c3c;
}

.methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.methods__title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.methods__link {
    border: 1px solid currentColor;
    background: transparent;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
}

/* ---- Popup modal -------------------------------------------------------- */
.modal,
.modal-sell,
.modal-sepa,
.modal-paypal,
.modal-cash,
.modal-whats {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: rgba(94, 110, 141, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s 0s, visibility 0s 0.3s;
    overflow-y: auto;
    z-index: 10000;
}

.modal.is-visible,
.modal-sell.is-visible,
.modal-sepa.is-visible,
.modal-paypal.is-visible,
.modal-cash.is-visible,
.modal-whats.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s 0s, visibility 0s 0s;
}

.modal__box {
    background-color: #111;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 700px;
    margin: auto;
    position: relative;
    padding: 20px 10px;
    color: #fff;
}

.modal__title {
    color: #fff;
    margin: 0 0 10px;
}

.modal__close {
    background: none;
    color: #fff;
    width: 40px;
    height: 40px;
    position: absolute;
    outline: none;
    top: 0;
    right: 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s linear;
}

.modal__close:hover {
    border: 1px solid #fff;
    border-radius: 10px;
}

/* ---- Form ---------------------------------------------------------------- */
.form {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 25px;
}

.input {
    display: block;
    width: 80%;
    padding: 10px 35px;
    background-color: transparent;
    border: 1px #fff solid;
    border-radius: 10px;
    font-size: 18px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s linear;
}

.input:focus {
    width: 81%;
}

.input::placeholder {
    color: #fff;
    opacity: 0.6;
}

.textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-success {
    display: none;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    padding: 0;
}

.form-success.form-error {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 400;
}

.form-success.is-visible {
    display: block;
}

@media (max-width: 500px) {
    .form-success { font-size: 18px; }
}

/* ---- Slide-to-submit captcha ------------------------------------------- */
.submit {
    border: none;
    display: none; /* triggered programmatically once the slider completes */
    border-radius: 10px;
    background-color: #333;
    color: #fff;
    padding: 6px 15px;
    font-size: 20px;
    cursor: pointer;
}

.captcha {
    margin: 0 auto;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 505px) {
    .captcha {
        flex-direction: column;
        gap: 10px;
    }
}

.captcha__title {
    color: #fff;
}

.slider-track {
    position: relative;
    width: 200px;
    height: 50px;
    border-radius: 48px;
    background-color: #dedede;
    box-shadow: inset 0 0 3px gray;
    font-family: "Open Sans", sans-serif;
}

.slider-track:after {
    content: 'Slide it to submit';
    position: absolute;
    left: 45px;
    line-height: 50px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.slider-handle {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    cursor: grab;
    background: #444;
    border: 1px solid #fff;
    box-shadow: 0 0 5px gray;
    transition: left 0.01s ease;
}

/* ---- Jumping dots loader ------------------------------------------------ */
.loader {
    display: none;
    width: 100px;
    height: 20px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
}

.loader span {
    display: none;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 0 5px;
}

.loader span:nth-child(1) { animation: bounce 1s ease-in-out infinite; }
.loader span:nth-child(2) { animation: bounce 1s ease-in-out 0.33s infinite; }
.loader span:nth-child(3) { animation: bounce 1s ease-in-out 0.66s infinite; }

@keyframes bounce {
    0%, 75%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
}
