/* Modal */
.vp-modal {
    display: none; 
    position: fixed !important; 
    z-index: 99999 !important; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); 
    align-items: center;
    justify-content: center;
}

.vp-modal-content {
    background-color: #fff;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    color: #333; 
    font-family: arial, sans-serif;
    border-radius: 8px; 
}

.vp-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.vp-close:hover {
    color: #333;
}

.bu-tag {
    display: none;
}

.voucher-container {
    max-width: 600px;
    padding: 40px;
    background: #d0efe1;
    border-radius: 20px;
    font-family: Arial, sans-serif;
}

.voucher-container .title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 18px;
    margin-top: 30px;
    color: #2A9B41;
    font-weight: normal;
}

.voucher-container label {
    display: block;
    text-align: left;
    font-weight: 700;
    color: #5e7766;
    margin: 40px 0 6px;
    font-size: 14px;
}

.privacy-row label {
    user-select: none;
    margin-top: 0;
    display: inline;
    pointer-events: none;
}

.privacy-row label a {
    pointer-events: auto;
}

#voucher-box .voucher-row {
    width: 100%;
    display: block !important;
    margin-right: 10px;
}

#voucher-box label {
    display: block !important;
    width: 100%;
    margin-bottom: 6px;
}

#voucher-box input[type="text"],
#voucher-box input[type="email"],
#voucher-box input[type="tel"],
#voucher-box input[type="date"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 24px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: none;
    background: #f2f2f2;
    outline: none;
}

.phone-wrapper {
    display: flex;
    flex-direction: column;
}

.phone-field {
    display: flex;
    align-items: center;
}

.phone-field .prefix {
    width: 30% !important;
    text-align: center;
    background: #e6e6e6;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 8px 0 0 8px;
    cursor: not-allowed;
}

.phone-field #v-phone {
    width: 70%;
    border: 1px solid #ccc;
    border-radius: 0 8px 8px 0;
}

.info-card {
    background-color: #2C5282;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 15px;
    border: 1px solid #BEE3F8;
}

.info-card-reg {
    background-color: #2C5282;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    border: 1px solid #BEE3F8;
}

.white-text {
    color: white !important;
}

#voucher-code{
    font-weight: bold;
    text-align: center;
    color: #2a9b41;
}

#error-msg {
    margin-top: 8px;
}

.alert-box {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: red;
    color: #ffffff;
    width: 80%; 
    padding: 20px 30px;
    min-height: 40px;
    z-index: 9999;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideDown {
    from { top: -60px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

#claim-btn, #back-btn {
    display: block;
    margin: 26px auto 0;
    background: #00c56e;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

#claim-btn:disabled {
    background: #cccccc !important; 
    color: #666666 !important; 
    cursor: not-allowed !important;
    opacity: 0.5;
    box-shadow: none !important;
    border: 1px solid #00c56c;
}

#claim-btn:enabled {
    background: #00c56e !important;
    opacity: 1;
    cursor: pointer;
}

#voucher-section {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#v-otp-code {
    display: block;
    width: 80%;
    margin: 20px auto;
    padding: 15px;
    font-size: 28px !important;
    text-align: center;
    letter-spacing: 12px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
    outline: none;
    font-weight: bold;
    color: #333;
}

#v-otp-code:focus {
    border-color: #2A9B41;
    background: #fff;
}

#verify-otp-btn {
    width: 100%;
    background: #2A9B41;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 35px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#verify-otp-btn:hover {
    background: #238237;
}

#verify-otp-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#otp-error {
    font-size: 13px;
    margin-top: 10px;
    font-weight: 600;
}

.field-error {
    font-weight: 600;
    margin-top: 4px;
}

/* ----------------------------------------------------------- */
/* NEW: TOGGLE TAB STYLES (Para sa Already a Member?)         */
/* ----------------------------------------------------------- */

.v-pill-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px 0; /* Nilayuan sa title para di overlap */
}

.v-pill-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 450px;
    background: #e2e8f0; /* Light gray background */
    border-radius: 50px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.v-pill-tab {
    position: relative;
    z-index: 2;
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 12px 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #4a5568 !important; /* Dark gray text */
    cursor: pointer;
    transition: color 0.3s ease;
    box-shadow: none !important;
    margin: 0 !important;
}

.v-pill-tab.active {
    color: #ffffff !important; /* White text 'pag active */
}

/* Sliding Knob background */
#v-pill-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #2A9B41; /* SFI Green */
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

/* Toggle Positions */
.pill-pos-register { transform: translateX(0); }
.pill-pos-member { transform: translateX(100%); }

/* Adjustment para sa Title para di dikit */
.voucher-container .title {
    margin-top: 20px !important;
    padding-top: 10px;
}
