@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn[wght].woff2') format('woff2 supports variations'),
    url('../fonts/vazirmatn/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.rdap-purchase-wrapper {
    font-family: Vazirmatn, sans-serif;
    width: 100%;
    max-width: 100%;
}

.rdap-type-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.rdap-type-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: #333;
}
.rdap-type-tab:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.rdap-type-tab.active {
    border-color: #0073aa;
    background: #f0f8ff;
    box-shadow: 0 4px 12px rgba(0,115,170,0.15);
}
.rdap-type-tab img {
    margin-bottom: 8px;
}
.rdap-type-tab span {
    font-weight: 600;
    font-size: 0.95rem;
}
.rdap-content-panel {
    background: #f9fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eaeef2;
    margin-top: 10px;
}

.rdap-purchase-section {
    margin: 0 auto;
    max-width: 900px;
}


.rdap-timeline {
    position: relative;
    padding: 20px 0;
}

.rdap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d1d5db;
    transform: translateX(-50%);
}

.rdap-timeline-item {
    display: flex;
    margin-bottom: -40px;
    position: relative;
}
.rdap-timeline-item:last-child {
    margin-bottom: 0;
}

.rdap-timeline-right {
    flex-direction: row-reverse;
    justify-content: right;
}
.rdap-timeline-left {
    flex-direction: row;
    justify-content: left;
}

.rdap-timeline-badge {
    border: 2px solid #ffffff;
    border-radius: 10px;
    display: block;
    height: 15px;
    position: absolute;
    width: 15px;
    z-index: 10;
}

.rdap-timeline-panel {
    position: relative;
    background: #f8fafc;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: calc( 50% - 32px );
    border: 1px solid #eef2f6;
}
.rdap-timeline-panel .rdap-timeline-heading {
    border-radius: 3px 3px 0 0;
    padding: 15px;
}
.rdap-timeline-heading {
    display: flex;
    gap:20px;
    align-items: center;
}
.rdap-timeline-heading .timeline-step {
    font-size: 2rem;
    font-weight: 900;
}
.rdap-timeline-heading .timeline-header-wrapper{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rdap-timeline-heading .timeline-desc {
    font-size: .7rem;
    font-weight: 300;
}
.rdap-timeline-panel .rdap-timeline-body {
    border-radius: 0 0 3px 3px;
    padding: 15px;
    background-color: #FFFFFF;
}
.rdap-timeline-panel .arrow {
    position: absolute;
    width: 0 !important;
    height: 0;
    top: 15px;
}

.rdap-timeline-right .rdap-timeline-badge{
    left: -40px;
    top: 15px;
}
.rdap-timeline-left .rdap-timeline-badge{
    right: -40px;
    top: 15px;
}
.pink .rdap-timeline-badge {
    background-color: #F19BA4 !important;
}

.blue .rdap-timeline-badge {
    background-color: #47CADC !important;
}
.green .rdap-timeline-badge {
    background-color: #47DBC3 !important;
}
.orange .rdap-timeline-badge {
    background-color: #f1d69b !important;
}

.pink .rdap-timeline-panel .rdap-timeline-heading{
    background: #F19BA4;
    color:white;
}

.blue .rdap-timeline-panel .rdap-timeline-heading{
    background: #47CADC;
    color:white;
}

.green .rdap-timeline-panel .rdap-timeline-heading{
    background: #47DBC3;
    color:white;
}
.orange .rdap-timeline-panel .rdap-timeline-heading{
    background: #f1d69b;
    color:white;
}

.pink .rdap-timeline-panel .arrow {
    border-color: transparent #F19BA4 transparent transparent;
}

.blue .rdap-timeline-panel .arrow {
    border-color: transparent transparent transparent #47CADC;
}

.green  .rdap-timeline-panel .arrow {
    border-color: transparent #47DBC3 transparent transparent;
}

.orange .rdap-timeline-panel .arrow {
    border-color: transparent transparent transparent #f1d69b;
}

.rdap-timeline-left .arrow {
    border-width: 10px 0 10px 10px;
    border-style: solid;
    right: -10px;
    float: right;
}
.rdap-timeline-right .arrow {
    border-width: 10px 10px 10px 0;
    border-style: solid;
    left: -10px;
    float: left;
}


.rdap-timeline-body .rdap-field {
    margin-bottom: 14px;
}
.rdap-timeline-body .rdap-field:last-child {
    margin-bottom: 0;
}


.rdap-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.rdap-field label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #334155;
}
.rdap-field input[type="text"],
.rdap-field input[type="tel"],
.rdap-field input[type="email"],
.rdap-field input[type="number"],
.rdap-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 0.95rem;
    transition: border-color 0.15s;
}
.rdap-field input:focus,
.rdap-field select:focus {
    border-color: #0073aa;
    outline: none;
}
.rdap-field input[type="checkbox"] {
    margin-right: 6px;
}

.rdap-mobile-input-wrapper {
    position: relative;
    width: 100%;
}
.rdap-mobile-input-wrapper input[type="tel"] {
    padding-right: 45px;
    direction: ltr;
    text-align: left;
}
.rdap-mobile-operator-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    line-height: 1;
}
.rdap-mobile-operator-icon img {
    display: block;
    width: 20px;
    height: 20px;
}


.rdap-operator-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 8px 0;
}
.rdap-operator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.6;
    padding: 6px 4px;
}
.rdap-operator-name {
    font-size: 0.6rem;
    font-weight: 500;
    margin-top: 4px;
    color: #475569;
}
.rdap-operator-item.active {
    filter: grayscale(0%);
    opacity: 1;
    border-color: #0073aa;
    background: #e8f0fe;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
    pointer-events: none;
}
.rdap-operator-item.active .rdap-operator-name {
    color: #0073aa;
}
.rdap-operator-item:hover:not(.active) {
    filter: grayscale(70%);
    opacity: 0.8;
    transform: scale(1.04);
}

.rdap-operator-item[data-operator="TALIYA"].active {
    border-color: #e60000;
    background: #ffe6e6;
}
.rdap-operator-item[data-operator="TALIYA"].active .rdap-operator-name {
    color: #e60000;
}
.rdap-operator-item[data-operator="MTN"].active {
    border-color: #ff8c00;
    background: #fff0e0;
}
.rdap-operator-item[data-operator="MTN"].active .rdap-operator-name {
    color: #ff8c00;
}
.rdap-operator-item[data-operator="MCI"].active {
    border-color: #00a651;
    background: #e5f4e5;
}
.rdap-operator-item[data-operator="MCI"].active .rdap-operator-name {
    color: #00a651;
}
.rdap-operator-item[data-operator="RIGHTEL"].active {
    border-color: #9b59b6;
    background: #f3e8f7;
}
.rdap-operator-item[data-operator="RIGHTEL"].active .rdap-operator-name {
    color: #9b59b6;
}


.rdap-custom-amount-number {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
}
.rdap-custom-number-input {
    max-width: 45% !important;
    margin: 0 !important;
}
.rdap-custom-range,
.rdap-quantity-range {
    width: 100%;
    margin: 8px 0;
    accent-color: #0073aa;
    outline: none;
}
.rdap-range-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
}
.rdap-range-hint {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}


.rdap-total {
    font-size: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
    margin-top: 14px;
}
#rdap-pay-button {
    font-family: inherit;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    font-size: 1.05rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
#rdap-pay-button:hover:not(:disabled) {
    background: #005a87;
}
#rdap-pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.rdap-gateway-selector {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
    margin-top: 14px;
    font-size: 0.9rem;
}
.rdap-gateway-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}
.rdap-gateway-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 70px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.6;
    padding: 8px 4px;
}
.rdap-gateway-item.active {
    filter: grayscale(0%);
    opacity: 1;
    border-color: #0073aa;
    background: #e8f0fe;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.12);
    pointer-events: none;
}
.rdap-gateway-item:hover:not(.active) {
    filter: grayscale(70%);
    opacity: 0.8;
    transform: scale(1.04);
}
.rdap-gateway-item[data-gateway="irkish"].active {
    border-color: #e60000;
    background: #ffe6e6;
}
.rdap-gateway-item[data-gateway="zarinpal"].active {
    border-color: #f2c706;
    background: #f6f0d2;
}


#rdap-notification {
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    direction: rtl;
    text-align: center;
    display: none;
    margin: 20px auto 0;
}
#rdap-notification.rdap-notification-error {
    background: #d32f2f;
}
#rdap-notification.rdap-notification-success {
    background: #2e7d32;
}


@media (max-width: 768px) {
    .rdap-options-grid {
        flex-direction: column;
        align-items: center;
    }
    .rdap-option-card {
        width: 100%;
        max-width: 300px;
        min-height: 140px;
    }

    .rdap-timeline::before {
        left: 20px;
    }
    .rdap-timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .rdap-timeline-panel {
        width: calc( 100% - 52px );
        margin: 0 !important;
    }
    .rdap-timeline-panel .arrow {
        border-width: 10px 10px 10px 0;
        border-style: solid;
        left: -10px;
        float: left;
        right: auto;
    }
    .rdap-timeline-left .rdap-timeline-badge {
        left: -40px;
        right: auto;
    }
    .blue .rdap-timeline-panel .arrow {
        border-color: transparent #47CADC transparent transparent !important;
    }

    .orange .rdap-timeline-panel .arrow {
        border-color: transparent #f1d69b transparent transparent !important;
    }
}

@media (max-width: 480px) {
    .rdap-field input,
    .rdap-field select {
        font-size: 0.9rem;
    }
    .rdap-custom-amount-number {
        flex-direction: column;
    }
    .rdap-custom-number-input {
        max-width: 100% !important;
    }
}
