﻿/*Global spinner, confirm box, progress bar for password etc*/


.container {
    padding-top: 50px;
    margin: auto;
}

#globalSpinner {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(2px);
}

.loader {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: relative;
    border: 3px solid transparent;
    border-top: 3px solid #4f46e5;
    animation: spin 0.9s linear infinite;
}

    .loader::before {
        content: '';
        position: absolute;
        inset: 8px;
        border-radius: 50%;
        border: 3px solid transparent;
        border-top: 3px solid #06b6d4;
        animation: spinReverse 0.7s linear infinite;
    }

    .loader::after {
        content: '';
        position: absolute;
        inset: 18px;
        border-radius: 50%;
        background: #4f46e5;
        animation: pulse 1s ease-in-out infinite;
    }

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.confirm-box {
    width: 350px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.confirm-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.confirm-message {
    margin-bottom: 20px;
    color: #555;
}

.confirm-buttons {
    text-align: right;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-cancel {
    background: #ccc;
}

.btn-ok {
    background: #007bff;
    color: white;
}
.password-wrapper {
    position: relative;
}
    .password-wrapper input {
        padding-right: 40px;
    }
.password-wrapper-reg {
    min-width: 96%;
    position: relative;
    display: inline-block;
}
.password-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-input {
    width: 100%;
    padding-right: 40px; /* space for eye icon */
}

.toggle-password {
    position: absolute;
    right: -5px;
    top: 60%;
    transform: translateY(-50%);
    cursor: pointer;
}

.eye-icon {
    height: 38px;
  margin-right: 15px;
}
.field-icon {
    position: absolute;
    z-index: 2;
    cursor: pointer;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.password-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

    .password-input:focus {
        border-color: #4caf50;
    }

.strength-container {
    margin-top: 10px;
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.progress {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    transition: all .3s ease;
    border-radius: 30px;
}

.strength-text {
    font-weight: bold;
    margin-bottom: 10px;
}

.rule {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #777;
    transition: 0.3s;
}

    .rule .icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #ddd;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        font-size: 13px;
        font-weight: bold;
    }

    .rule.valid {
        color: #2e7d32;
    }

        .rule.valid .icon {
            background: #4caf50;
        }

.strength-weak .progress-bar {
    width: 25%;
    background: #f44336;
}

.strength-medium .progress-bar {
    width: 60%;
    background: #ff9800;
}

.strength-strong .progress-bar {
    width: 100%;
    background: #4caf50;
}

/*Chekout progress bar*/ 

.checkout-progress-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 40px auto;
    max-width: 900px;
}

.checkout-progress-bar .progress-line {
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 8px;
    background: #ddd;
    border-radius: 10px;
    z-index: 1;
}

.checkout-progress-bar .progress-fill {
    height: 100%;
    width: 0%;
    background: #7bc043;
    border-radius: 10px;
    transition: width .5s ease;
}

.checkout-progress-bar .steper {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 120px;
}

    .checkout-progress-bar .steper span {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #d8d8d8;
        color: #fff;
        font-weight: bold;
        transition: all .3s;
    }

    .checkout-progress-bar .steper label {
        display: block;
        margin-top: 10px;
        font-size: 14px;
    }

    .checkout-progress-bar .steper.completed span {
        background: #7bc043;
    }

    .checkout-progress-bar .steper.active span {
        background: #7bc043;
        transform: scale(1.15);
    }

/*Validation tickmark with border*/

/* Red border */
.input-validation-error {
    border: 1px solid #dc3545 !important;
}

/* Green border */
.Genuine {
    border: 1px solid #28a745 !important;
}

/* Tick/Cross */
.validation-icon {
    position: relative;
}

    .validation-icon::after {
        position: absolute;
        right: 10px;
        top: 87%;
        transform: translateY(-50%);
        font-size: 16px;
        font-weight: bold;
    }

    .validation-icon.valid-icon::after {
        content: "✓";
        color: #28a745;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border: 2px solid #28a745;
        border-radius: 50%;
        font-size: 12px;
        line-height: 1;
    }

    .validation-icon.error-icon::after {
        content: "✕";
        color: #dc3545;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border: 2px solid #dc3545;
        border-radius: 50%;
        font-size: 12px;
        line-height: 1;
    }