/* Secaas Registration — v2.9.2 — بهبود تجربه خرید کاربر عمومی */

/* --- دکمهٔ تغییر پکیج (تنها کنش ناوبری صفحه آخر) --- */

.secaas-package-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.secaas-package-header-top h3 {
    margin: 0;
}

.secaas-change-package-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #d9deef;
    color: #3b4666;
    border-radius: 999px;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(20, 25, 50, .05);
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.secaas-change-package-btn:hover {
    background: #f2f5ff;
    border-color: #b9c4ea;
    color: #24305c;
    transform: translateY(-1px);
}

.secaas-change-package-btn:active {
    transform: translateY(0);
}

.secaas-change-package-btn svg {
    flex: 0 0 auto;
    opacity: .8;
}

@media (max-width: 520px) {
    .secaas-change-package-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* --- تایمر ارسال مجدد کد تایید --- */

.secaas-otp-timer {
    background: #f5f7fd;
    border: 1px solid #e2e7f6;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 16px;
}

.secaas-otp-timer-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.secaas-otp-timer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e7ecfb;
    color: #3b4f9e;
    flex: 0 0 auto;
}

.secaas-otp-timer-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.secaas-otp-timer-label {
    font-size: 12.5px;
    color: #5b6280;
    line-height: 1.8;
}

.secaas-otp-timer-value {
    font-size: 18px;
    font-weight: 700;
    color: #24305c;
    letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
}

.secaas-otp-timer-bar {
    display: block;
    height: 5px;
    margin-top: 10px;
    border-radius: 99px;
    background: #e3e8f7;
    overflow: hidden;
}

.secaas-otp-timer-bar > i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #4f68c9, #7d93e8);
    transition: width 1s linear;
}

.secaas-otp-timer-done {
    background: #f3fbf5;
    border-color: #cde9d6;
}

.secaas-otp-timer-done .secaas-otp-timer-icon {
    background: #dff3e6;
    color: #1f7a45;
}

.secaas-otp-timer-done .secaas-otp-timer-label {
    color: #1f7a45;
}

.secaas-otp-timer-done .secaas-otp-timer-value {
    color: #1f7a45;
}

.secaas-otp-timer-done .secaas-otp-timer-bar > i {
    background: #9ed3b2;
}

/* --- کد تخفیف --- */

.secaas-discount-box {
    background: #f8f9fc;
    border: 1px dashed #d8dcea;
    border-radius: 12px;
    padding: 14px;
    margin: 0 0 18px;
}

.secaas-discount-box > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.secaas-discount-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.secaas-discount-row input[type="text"] {
    flex: 1 1 180px;
    min-width: 150px;
    text-transform: uppercase;
}

.secaas-discount-row button {
    flex: 0 0 auto;
    background: #2f3b57;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.secaas-discount-row button:disabled {
    opacity: .6;
    cursor: default;
}

.secaas-discount-result {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.9;
}

.secaas-discount-ok {
    color: #1f7a45;
}

.secaas-discount-error {
    color: #b32222;
}

.secaas-discount-wait {
    color: #6b7188;
}
