@font-face {
    font-family: "Yekan";
    src: url("./Yekan/Yekan.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: "Yekan", sans-serif !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f4f8fc;
    color: #12304a;
}

/* Header */
header {
    background: white;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.logo {
    font-size: 15px;
    font-weight: bold;
    color: #0879d1;
}

.logo span {
    color: #18a0f5;
}

.header-btn {
    background: #0879d1;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
}

/* Main */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 45px auto;
}

.title {
    text-align: center;
    margin-bottom: 30px;
}

.title h1 {
    font-size: 28px;
    color: #12304a;
    margin-bottom: 10px;
}

.title p {
    color: #71869a;
    font-size: 14px;
}

/* Calculator */
.card {
    background: white;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 90, 160, 0.08);
    margin-bottom: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #12304a;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #486277;
}

input,
select {
    width: 100%;
    height: 52px;
    border: 1px solid #d6e3ee;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
    background: #fbfdff;
    color: #12304a;
}

input:focus,
select:focus {
    border-color: #0879d1;
    box-shadow: 0 0 0 3px rgba(8, 121, 209, 0.08);
}

/* حالت خارج از محدوده مجاز برای مبلغ سپرده */
input.amount-invalid {
    border-color: #d93025;
    color: #d93025;
}

input.amount-invalid:focus {
    border-color: #d93025;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.amount-wrapper {
    position: relative;
}

.amount-wrapper input {
    padding-left: 65px;
}

.currency {
    position: absolute;
    left: 15px;
    top: 17px;
    color: #71869a;
    font-size: 13px;
}

.hint {
    margin-top: 7px;
    font-size: 11px;
    color: #8a9aaa;
}

/* Results */
.results {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.result-box {
    background: #f3f9ff;
    border: 1px solid #dceefa;
    border-radius: 15px;
    padding: 20px;
}

.result-box .label {
    font-size: 12px;
    color: #71869a;
    margin-bottom: 8px;
}

.result-box .value {
    font-size: 19px;
    font-weight: bold;
    color: #0879d1;
}

/* Deposit duration */
.duration-box {
    background: #f7fbff;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #dceefa;
}

.duration-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.duration-value {
    font-size: 22px;
    font-weight: bold;
    color: #0879d1;
}

input[type="range"] {
    padding: 0;
    height: 5px;
    accent-color: #0879d1;
    border: none;
    box-shadow: none;
    background: #dceefa;
}

.range-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    color: #879aaa;
}

/* Submit */
.submit-btn {
    width: 100%;
    height: 55px;
    margin-top: 25px;
    border: none;
    border-radius: 13px;
    background: #0879d1;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:hover {
    background: #0668b5;
}

.submit-btn:disabled {
    background: #9bb8cc;
    cursor: not-allowed;
}

/* Success */
.success {
    display: none;
    text-align: center;
    background: #edfff5;
    border: 1px solid #bcebd0;
    color: #187346;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    line-height: 2;
}

.success.show {
    display: block;
}

.error {
    display: none;
    color: #d93025;
    font-size: 12px;
    margin-top: 6px;
}

.error.show {
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #8a9aaa;
    font-size: 12px;
}

/* Mobile */
@media (max-width: 700px) {
    header {
        padding: 0 20px;
    }

    .container {
        width: 94%;
        margin-top: 25px;
    }

    .card {
        padding: 22px;
        border-radius: 17px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .results {
        grid-template-columns: 1fr;
    }

    .title h1 {
        font-size: 22px;
    }
}

/* Support / contact card */
.support-card {
    text-align: center;
}

.support-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.support-link {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7fbff;
    border: 1px solid #dceefa;
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: #12304a;
    transition: 0.2s;
    text-align: right;
}

.support-link:hover {
    background: #e5f0ff;
    border-color: #0879d1;
}

.support-icon {
    font-size: 24px;
    line-height: 1;
}

.support-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.support-text strong {
    font-size: 14px;
    color: #12304a;
}

.support-text small {
    font-size: 12px;
    color: #71869a;
}

@media (max-width: 700px) {
    .support-links {
        flex-direction: column;
    }

    .support-link {
        min-width: unset;
    }
}
