:root {
    --bg-input: #F5F5F5;
    --border-color: #898989;
    --text-label: #2C2C2C;
    --text-input: #616161;
    --border-radius: 8px;
}

.my-account-page {
    padding: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: calc(100vh - 64px);
    overflow-y: scroll;
    position: relative;
}

.my-account-page .wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
}

.my-account-nav .header-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

@media(min-width: 1024px) {
    .my-account-page {
        height: calc(100vh - 90px);
    }

    .my-account-nav .header-icon {
        width: 40px;
        height: 40px;
    }

    .my-account-page .wrapper {
        width: 44vw;
        max-width: 1024px;
        height: 100%;
        justify-content: center;
    }
}

@media (min-width: 1366px) {
    .my-account-page {
        height: calc(100vh - 90px);
    }
}

.my-account-section {
    opacity: 1;
    gap: 16px;
    border-radius: 13px;
    padding: 20px;
    background-color: #FFFFFF;
    border: 2px solid #EDEDED;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    display: none;
}

.my-account-section.show {
    display: flex;
}

.my-account-section .header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-bottom: solid 3px #ECECEC;
    padding: 0 0 16px 0;
}

.my-account-section .header.verified .verify-now-btn,
.my-account-section .header.verified .text-wrapper {
    display: none;
}

.my-account-section .header .verified-badge {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    opacity: 1;
    padding: 8px 24px;
    border-radius: 200px;
    border: 2px solid #ECECEC;
}

.my-account-section .verified-badge .verified-icon {
    width: 24px;
    height: 24px;
}

.my-account-section .header.verified .verified-badge {
    display: flex;
}

.my-account-section .header .verified-badge p {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #2196F3;
}

@media (max-width: 767px) {
    .my-account-section .header .verified-badge p {
        font-size: 14px;
    }
}

.my-account-section .body {
    width: 100%;
}

.my-account-section .verify-now-btn {
    opacity: 1;
    gap: 8px;
    border-radius: 200px;
    padding: 12px 32px;
    background-color: #6F42C1;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #FFFFFF;
}

.my-account-section .text-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: start;
    justify-content: center;
}

.my-account-section .text-wrapper p {
    font-weight: 600;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #545454;
}

.my-account-section .text-wrapper .alert-icon {
    width: 20px;
    height: 20px;
}

.profile-form,
.change-password-form{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
    border-bottom: solid 3px #ECECEC;
    padding: 0 0 16px 0;
}

.change-password-form {
    padding: 16px 0 0 0;
    border: none;
}

.profile-form select:disabled {
    opacity: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.name-group     { grid-column: span 2; }
.username-group { grid-column: span 2; }
.school-group   { grid-column: span 2; }
.level-group    { grid-column: span 1; }
.class-group    { grid-column: span 1; }
.password-group { grid-column: span 2; }

.my-account-page > label {
    font-weight: 600;
    color: var(--text-label);
    font-size: 1rem;
}

.my-account-page input[type="text"],
.my-account-page input[type="password"],
.verify-phone-number-modal-wrap input[type="password"],
.my-account-page select {
    width: 100%;
    min-height: 52px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-input);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.my-account-page input[type="text"]:focus,
.my-account-page select:focus {
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(85, 85, 85, 0.1);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.change-password-btn {
    opacity: 1;
    gap: 16px;
    border-radius: 200px;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    border: 2px solid #ECECEC;
    color: #6F42C1;
    background-color: transparent;
    width: fit-content;
    grid-column:  span 2;
    align-self : end;
}

.change-password-btn:disabled {
    background-color: #ECECEC;
    color: #D9D9D9;
    border: none;
}

@media (max-width: 640px) {
    .profile-form,
    .change-password-form {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .name-group,
    .username-group,
    .school-group,
    .level-group,
    .class-group,
    .password-group {
        grid-column: span 1;
    }

    .change-password-btn {
        grid-column: span 1;
        margin: auto;
        font-size: 14px;
    }
}

.change-password-action {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 767px) {
    .my-account-section {
        margin: 0;
    }
}

.verify-phone-number-modal-wrap {
    padding: 0;
    background-color: #FFFFFF;
    border-radius: 12px;
}

.verify-phone-number-modal-wrap .verify-phone-number-header {
    padding: 18px 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: #6F42C1;
    font-weight: 600;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #FFFFFF;
}

.verify-phone-number-modal-wrap .verify-phone-number-body,
.verify-phone-number-modal-wrap .change-password-body {
    background-color: #F5F5F5;
    padding: 18px 20px;
}

.change-password-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.verify-phone-number-modal-wrap .verify-phone-number-footer {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 18px 20px;
}

.verify-phone-number-modal-wrap .verify-phone-number-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.verify-phone-number-modal-wrap .verify-phone-number-footer .btn-primary {
    gap: 8px;
    border-radius: 13px;
    padding: 12px 48px;
    background-color: #6F42C1;
    box-shadow: 0 -3px 0 0 #00000040 inset;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #FFFFFF;
    border: none;
    width: fit-content;
}

.verify-phone-number-modal-wrap .verify-phone-number-footer .btn-primary:disabled {
    background-color: #ECECEC;
    box-shadow: 0 -3px 0 0 #00000040 inset;
    color: #D9D9D9;
}

.verify-phone-number-modal-wrap .verify-phone-number-footer .btn-secondary {
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #2C2C2C;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.verify-phone-number-modal-wrap .verify-phone-number-footer .btn-third {
    border-radius: 200px;
    border-width: 2px;
    padding: 12px 32px;
    gap: 8px;
    border: 2px solid #ECECEC;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
    color: #161616;
    background-color: transparent;
}

.phone-input-group,
.password-input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.phone-label,
.password-label {
    font-weight: 600;
    font-size: 18px;
    color: #333333;
}

.phone-wrapper {
    width: 100%;
    position: relative;
}

.password-wrapper .password-field {
    padding-right: 52px;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #666666;
    width: 28px !important;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.password-toggle-btn .eye-icon {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .password-toggle-btn .eye-icon svg {
    width: 20px;
    height: 20px;
}
}

.password-toggle-btn .eye-closed {
    display: none;
}

.password-toggle-btn.is-visible .eye-open {
    display: none;
}

.password-toggle-btn.is-visible .eye-closed {
    display: inline-flex;
}

.verify-phone-number-modal-wrap .iti {
    width: 100%;
    display: block;
}

.verify-phone-number-modal-wrap #phone,
.verify-phone-number-modal-wrap #change-phone-number-input {
    width: 100%;
    height: 52px;
    padding: 12px 18px 12px 124px;
    border: 1px solid #C2C2C2;
    border-radius: 16px;
    background-color: #EFEFEF;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: #2C2C2C;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.verify-phone-number-modal-wrap.dial-code-len-1 #phone,
.verify-phone-number-modal-wrap.dial-code-len-1 #change-phone-number-input {
    padding-left: 112px;
}

.verify-phone-number-modal-wrap.dial-code-len-2 #phone,
.verify-phone-number-modal-wrap.dial-code-len-2 #change-phone-number-input {
    padding-left: 124px;
}

.verify-phone-number-modal-wrap.dial-code-len-3 #phone,
.verify-phone-number-modal-wrap.dial-code-len-3 #change-phone-number-input {
    padding-left: 136px;
}

.verify-phone-number-modal-wrap .phone-code-prefix {
    position: absolute;
    top: 50%;
    left: 84px;
    transform: translateY(-50%);
    color: #C2C2C2;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.verify-phone-number-modal-wrap #phone:focus,
.verify-phone-number-modal-wrap #forgot-pass-username-input:focus,
.verify-phone-number-modal-wrap #change-phone-username-input:focus,
.verify-phone-number-modal-wrap #change-phone-number-input:focus {
    outline: none;
    border-color: #9F81D6;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.verify-phone-number-modal-wrap #phone::placeholder,
.verify-phone-number-modal-wrap #change-phone-number-input::placeholder {
    color: #C2C2C2;
    font-weight: 600;
}

.verify-phone-number-modal-wrap #phone.error,
.verify-phone-number-modal-wrap #change-phone-number-input.error {
    border-color: #F15858;
}

.verify-phone-number-modal-wrap .iti__flag-container {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    background-color: #FFFFFF;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    border-right: 2px solid #9F81D6;
}

.verify-phone-number-modal-wrap .iti__selected-flag {
    padding: 0 20px;
    height: 100%;
}

.verify-phone-number-modal-wrap .iti__selected-flag:hover {
    background-color: #F5F5F5;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.verify-phone-number-modal-wrap .iti__selected-dial-code {
    display: none;
}

.verify-phone-number-modal-wrap .iti__arrow {
    border-top-color: #666666;
}

@media (max-width: 767px) {
    .verify-phone-number-modal-wrap #phone {
        font-size: 18px;
        height: 52px;
        padding-left: 126px;
    }

    .verify-phone-number-modal-wrap .phone-code-prefix {
        left: 84px;
        font-size: 18px;
    }
}

.verify-phone-number-modal-wrap .iti__selected-flag {
    border-top-left-radius: 16px !important;
    border-bottom-left-radius: 16px !important;
    background-color: white !important;
    border: 1px solid #C2C2C2 !important;
}

.verify-phone-number-modal-wrap .iti__flag-container {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

@media (min-width: 1024px) {
    .iti__country-list {
        max-width: 400px;
    }
}

.phone-input-group #error-msg,
.password-input-group #error-msg,
.phone-input-group #change-phone-error-msg {
    display: none;
}

.phone-input-group:has(input.error) #error-msg,
.password-input-group:has(input.error) #error-msg,
.phone-input-group:has(input.error) #change-phone-error-msg {
    font-weight: 600;
    font-size: 12px;
    line-height: 135%;
    letter-spacing: 0;
    color: #F57E77;
    display: block;
    text-align: left;
}

/* Username Input Styling for Change Phone Modal */
#forgot-pass-username-input,
#change-phone-username-input {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    padding: 11px 12px;
    border: 1px solid #898989;
    background-color: #F5F5F5;

    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #2C2C2C;
}

#forgot-pass-username-input::placeholder,
#change-phone-username-input::placeholder {
    color: #898989;
    font-weight: 500;
}

#forgot-pass-username-input:focus,
#change-phone-username-input:focus {
    color: #2C2C2C;
}

/* Phone Number Input Styling for Change Phone Modal */
#change-phone-number-input {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    padding: 11px 12px 11px 72px;
    border: 1px solid #898989;
    background-color: #F5F5F5;

    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #2C2C2C;
}

#change-phone-number-input::placeholder {
    color: #898989;
    font-weight: 500;
}

#change-phone-number-input:focus {
    color: #2C2C2C;
}

.my-account-page .otp-section {
    display: none;
    padding: 40px 20px;
    border-radius: 8px;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    border: 2px solid #EDEDED;
    background-color: #FFFFFF;
}

.my-account-page .otp-section.show {
    display: flex;
}

.my-account-page .otp-section .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.my-account-page .otp-section h2 {
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    text-align: center;
    vertical-align: middle;
    color: #525252;
}

.my-account-page .otp-section .header p {
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #525252;
}

.my-account-page .otp-section .header span#phone-number {
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.5px;
    text-align: center;
    vertical-align: middle;
    color: #6F42C1;
}

.my-account-page .otp-section .otp-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.my-account-page .otp-section .otp-wrapper.error #otp-msg {
    color: #F57E77;
    font-weight: 600;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0;
    text-align: center;
}

.my-account-page .otp-section .otp-inputs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(56px, 1fr));
    gap: 14px;
    max-width: 760px;
}

.my-account-page .otp-section .otp-inputs input {
    text-align: center;
    border: 1px solid #5E6366;
    border-radius: 12px;
    background-color: #FFFFFF;
    color: #5E6366;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    min-height: auto;
    aspect-ratio: 52/64;
}

.my-account-page .otp-section .otp-wrapper.error .otp-inputs input {
    border: 1px solid #F15858;
    color: #F15858;
}

.my-account-page .otp-section .otp-inputs input:focus {
    outline: none;
    border-color: #8E3EC9;
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.14);
}

.my-account-page .otp-section .otp-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.my-account-page .otp-section .otp-actions p {
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    color: #525252;
}

.my-account-page .otp-section .otp-link {
    border: none;
    background: transparent;
    color: #6F42C1;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
}

.my-account-page .otp-section .resend-btn {
    border: none;
    background: transparent;
    color: #CFC0EA;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.my-account-page .otp-section .resend-btn:not(:disabled) {
    color: #6F42C1;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
}

.my-account-page .otp-section .resend-timer {
    color: #909090;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 767px) {
    .my-account-page .otp-section {
        padding: 24px 16px;
    }
    .my-account-page .otp-section h2 {
        font-size: 20px;
    }
    .my-account-page .otp-section .otp-actions p {
        text-align: center;
    }
    .my-account-page .otp-section .otp-inputs {
        grid-template-columns: repeat(6, minmax(10vw, 1fr));
        gap: 8px;
    }
    .my-account-page .otp-section .otp-inputs input {
        font-size: 24px;
        border-radius: 12px;
    }
}

.toast-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: max-content;
    max-width: 90vw;
}

.toast-notification.show {
    top: 96px;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1023px) {
    .toast-notification.show {
        top: 72px;
    }
}

.toast-notification .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-notification p {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    vertical-align: middle;
    color: #404040;
    margin: 0;
    text-align: left;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: none;
}

@media (max-width: 767px) {
    .toast-notification p {
        font-size: 14px;
    }
    .toast-notification {
        padding: 14px 16px;
        width: 90vw;
        gap: 12px;
    }
}

.phone-wrapper input[type="password"] {
    top: unset;
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: start;
}

.password-requirement-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#new-pass-msg,
#confirm-pass-msg,
#current-pass-msg {
    min-height: 18px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

#current-pass-msg.is-error,
#new-pass-msg.is-error,
#confirm-pass-msg.is-error,
#current-pass-msg.is-error {
    color: #F57E77;
}

#new-pass-msg.is-success,
#confirm-pass-msg.is-success,
#current-pass-msg.is-success {
    color: #58CC05;
}

@media (min-width: 1280px) and (max-height: 633px) {
    .verify-phone-number-footer {
        padding: 8px !important;
        gap: 4px !important;
    }

    .change-password-body {
        gap: 4px;
        padding: 8px 16px !important;
    }

    .verify-phone-number-modal-wrap .verify-phone-number-header {
        font-size: 18px;
    }
}

.warning-modal.verify-phone-number-modal-content {
    max-height: 100dvh;
}

@media (max-width: 767px) {
    .my-account-page {
        height: 100%;
        min-height: calc(100dvh - 64px);
    }
}

.forgot-card .verify-phone-number-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-new-password-section {
    display: none;
}

.create-new-password-section.show {
    display: block;
}

@media (max-width: 767px) {
    .verify-phone-number-modal-wrap .verify-phone-number-header {
        font-size: 18px;
        line-height: 24px;
    }

    .phone-label, .password-label {
        font-size: 16px;
    }

    #forgot-pass-username-input,
    #change-phone-username-input {
        font-size: 16px;
    }

    .verify-phone-number-modal-wrap .verify-phone-number-footer .btn-primary {
        font-size: 16px;
        padding: 10px 40px;
    }

    .verify-phone-number-modal-wrap .verify-phone-number-footer .btn-secondary {
        font-size: 16px;
    }

    .verify-phone-number-modal-wrap #phone,
    .verify-phone-number-modal-wrap #change-phone-number-input {
        font-size: 16px;
    }
}
