﻿.profile-block-container {
    padding: 20px 330px;
}

.profile-logo {
    display: flex;
}

.verify-input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid #d1d1d1;
    outline: none;
    box-shadow: none;
}

    .verify-input[readonly]:focus,
    .verify-input[readonly]:focus-visible {
        border: 1px solid #d1d1d1;
        outline: none;
        box-shadow: none;
    }

.profile-photo-edit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background-color: transparent;
}

.profile-creation-success-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: #4caf50;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
}

@media screen and (max-width: 768px) {
    .profile-creation-success-toast {
        bottom: 10px;
        right: 10px;
        min-width: 200px;
        font-size: 13px;
    }
}

.profile-creation-success-toast[hidden] {
    display: none;
}

.profile-creation-success-toast--hiding {
    animation: slideOutRight 0.3s ease-out;
}

.profile-photo-and-edit {
    position: relative;
    width: 260px;
    height: 260px;
    display: inline-block;
}

.large-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d72f2f;
    background-color: #f8d7da;
    display: block;
}

    .large-photo[hidden] {
        display: none;
    }

.profile-initials {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb3b3 0%, #ffc1c1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-size: 54px;
    font-weight: 600;
    color: #d72f2f;
    text-transform: uppercase;
    border: none;
    user-select: none;
}

    .profile-initials[hidden] {
        display: none;
    }

.button-camera {
    position: absolute;
    bottom: 0px;
    left: 60%;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #d72f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
}

    .button-camera:hover {
        background-color: #fff5f5;
    }

.edit-camera {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .spinner-overlay[hidden] {
        display: none;
    }

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.validation-error {
    font-size: 13px;
    transition: all 0.3s ease;
    color: #d72f2f;
    width: 400px;
    border-radius: 4px;
    padding: 5px 10px;
}

    .validation-error[hidden] {
        display: none;
    }

@media (max-width: 450px) {
    .validation-error {
        width: 100%;
        font-size: 12px;
    }
}

.image-action-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 20px;
    min-width: 300px;
    max-width: 400px;
    animation: fadeIn 0.3s ease-out;
}

    .image-action-modal[hidden] {
        display: none;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-option {
    padding: 18px 20px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #6b5dd3;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px;
}

    .modal-option:hover {
        background-color: #f8f8f8;
    }

    .modal-option:last-child {
        border-bottom: none;
    }

    .modal-option.danger {
        color: #d72f2f;
    }
/* Toast Notification - Bottom Right */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
    min-width: 250px;
}

    .toast-notification[hidden] {
        display: none;
    }


@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal-backdrop[hidden] {
    display: none;
}

.toast-notification.hide {
    animation: slideOutRight 0.3s ease-out;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.profile-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
    min-width: 250px;
}

.profile-toast--success {
    background: #4caf50;
}

.profile-toast--hide {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .large-photo, .profile-initials, .spinner-overlay {
        width: 130px;
        height: 130px;
    }

    .profile-initials {
        font-size: 48px;
    }

    .button-camera {
        width: 32px;
        height: 32px;
    }

    .edit-camera {
        width: 16px;
        height: 16px;
    }

    .image-action-modal {
        min-width: 280px;
        max-width: 90%;
    }

    .toast-notification {
        bottom: 10px;
        right: 10px;
        min-width: 200px;
        font-size: 13px;
    }
}

@media screen and (max-width: 425px) {
    .large-photo, .profile-initials, .spinner-overlay {
        width: 110px;
        height: 110px;
    }

    .profile-initials {
        font-size: 40px;
    }

    .button-camera {
        width: 30px;
        height: 30px;
        bottom: 3px;
        right: 3px;
    }

    .edit-camera {
        width: 14px;
        height: 14px;
    }
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .large-photo,
    .profile-initials,
    .spinner-overlay {
        width: 150px;
        height: 150px;
    }

    .profile-initials {
        font-size: 54px;
    }

    .button-camera {
        width: 40px;
        height: 40px;
    }

    .edit-camera {
        width: 20px;
        height: 20px;
    }

    .button-delete {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 425px) {
    .large-photo,
    .profile-initials,
    .spinner-overlay {
        width: 120px;
        height: 120px;
    }

    .profile-initials {
        font-size: 42px;
    }

    .button-camera {
        width: 35px;
        height: 35px;
        bottom: 5px;
        right: 5px;
    }

    .edit-camera {
        width: 18px;
        height: 18px;
    }

    .button-delete {
        width: 30px;
        height: 30px;
        top: 5px;
        right: 5px;
    }

        .button-delete img {
            width: 16px;
            height: 16px;
        }
}

input[type="date"] {
    display: block;
    padding: 20px;
    padding-right: 50px;
    line-height: normal;
    position: relative;
    color: #333;
}

.save-button {
    width: 208px;
    height: 60px;
    border-radius: 16px;
    padding: 15px 24px 20px 24px;
    background-color: #d72f2f;
    border: none;
    font-size: 18px;
    color: white;
}

    .save-button > a {
        font-size: 18px;
        color: white;
    }

input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    padding-top: 0;
    padding-bottom: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

input[type="date"]:not(:focus):invalid {
    color: #999;
}

input[type="date"]:valid {
    color: #333;
}

.header-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 15px;
    margin-bottom: 30px;
}

.label {
    justify-content: center;
    font-weight: 500;
}

/* Add red asterisk after required field labels using CSS */
label[for="Input_FirstName"]::after,
label[for="Input_LastName"]::after,
label[for="Input_ContactNo"]::after,
label[for="Input_Dob"]::after,
label[for="Input_Gender"]::after,
label[for="Input_StateId"]::after,
label[for="Input_CityId"]::after {
    content: " *";
    color: #d72f2f;
    font-weight: 600;
}

/* No asterisk for optional field */
label[for="Input_ReferralCode"]::after {
    content: "";
}

input,
select,
textarea,
.input,
input[type="text"],
input[type="tel"],
input[type="date"],
select.input {
    outline: none;
    outline-width: 0;
    outline-style: none;
    outline-color: transparent;
    border: 1px solid #d1d1d1;
    transition: none;
}

    input:focus,
    select:focus,
    textarea:focus,
    .input:focus,
    input[type="text"]:focus,
    input[type="tel"]:focus,
    input[type="date"]:focus,
    select.input:focus,
    input:focus-visible,
    select:focus-visible,
    .input:focus-visible {
        outline: 2px solid #d72f2f;
        outline-offset: 0;
        border: none;
        box-shadow: none;
        transition: none;
    }

.header1 {
    display: flex;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1;
}

.input-error,
input.input-error,
select.input-error {
    border: 2px solid #d72f2f;
    outline: none;
}

    .input-error:focus,
    input.input-error:focus,
    select.input-error:focus {
        border: 2px solid #d72f2f;
        outline: none;
        box-shadow: none;
    }

select.input.input-error {
    border: 2px solid #d72f2f;
}

    select.input.input-error:focus {
        border: 2px solid #d72f2f;
        outline: none;
        outline-offset: 0;
        box-shadow: none;
    }

.error-message {
    color: #d72f2f;
    margin-top: -5px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.input-error,
input.input-error,
select.input-error {
    border: 2px solid #d72f2f;
    outline: none;
}

    .input-error:focus,
    input.input-error:focus,
    select.input-error:focus {
        outline: 2px solid #d72f2f;
        border: none;
        box-shadow: none;
    }

.row-input-field {
    display: flex;
    flex-direction: row;
    column-gap: 30px;
}

.details-flex-column {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
    align-items: flex-start;
    padding: 30px 10px;
}

.form-flex-column {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.single-input-field {
    width: 390px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    position: relative;
}

.label {
    justify-content: center;
    font-weight: 500;
}

    .label > span {
        color: red;
    }

    .label::after {
        content: "";
    }

/* Override for optional field */
input[name="Input.ReferralCode"] + .error-message::before,
label[for="Input_ReferralCode"]::after {
    content: "";
}

.one-input-field {
    width: 50%;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    position: relative;
    margin-bottom: 10px;
}

.btn.profile-btn-primary {
    background: #d72f2f;
    border: 1px solid #d72f2f;
    color: #fff;
    width: 100%;
    margin-top: 20px;
    text-shadow: 0 0 4px #fffc;
}

    .btn.profile-btn-primary > a {
        color: #fff;
    }

.underline_link {
    font-size: 16px;
    font-family: "Poppins";
    color: #d72f2f;
    text-decoration: underline;
}

.btn.profile-btn-primary > img {
    width: 30px;
    height: 30px;
}

.input-icon {
    position: absolute;
    top: 57%;
    align-items: center;
    justify-content: center;
    right: 20px;
    transform: translateY(-50%);
    pointer-events: none;
    width: 20px;
    height: 20px;
    background: url("/img/confirm-tick.svg") no-repeat center;
}

/* Select dropdown styling */
select.input {
    border-color: transparent;
    padding-right: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

option {
    width: 50px;
}

input::placeholder {
    color: #999;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 150px;
    overflow-y: scroll;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
}

.option {
    padding: 5px 10px;
    cursor: pointer;
}

    .option:hover {
        background-color: #f0f0f0;
    }

/* Custom dropdown */
.profile-select-clicked {
    border: 1.5px #d72f2f solid;
}

.profile-select:hover {
    color: black;
}

.profile-dropdown {
    min-width: 320px;
    position: relative;
}

    .profile-dropdown * {
        box-sizing: border-box;
    }

.profile-selected {
    color: #000e14;
    font-size: 14px;
}

.profile-select {
    background-color: #f1f1f1;
    color: #000e14;
    font-family: "poppins";
    display: flex;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #d1d1d1;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid black;
    transition: 0.3s;
}

.caret-rotate {
    transform: rotate(180deg);
}

.profile-menu-item {
    list-style: none;
    padding: 10px;
    background: linear-gradient(180deg, rgb(112.6, 0, 0) 0%, rgb(215, 47, 47) 100%);
    border: 1px solid #d1d1d1;
    border-radius: 16px;
    color: #fff;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    height: 170px;
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
    display: none;
    transition: 0.2s;
    z-index: 1;
}

    .profile-menu-item::-webkit-scrollbar {
        width: 3px;
    }

    .profile-menu-item::-webkit-scrollbar-track {
        margin-top: 20px;
        margin-bottom: 20px;
        background: #323741;
        border-radius: 16px;
    }

    .profile-menu-item::-webkit-scrollbar-thumb {
        background-color: #d1d1d1;
        border-radius: 16px;
        border: 1px solid #323741;
    }

        .profile-menu-item::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

    .profile-menu-item > li {
        padding: 10px;
        border-radius: 16px;
        font-family: "poppins";
        font-size: 12px;
        cursor: pointer;
    }

        .profile-menu-item > li:hover {
            background-color: #d1d1d1;
            color: black;
        }

.profile-menu-item-open {
    display: block;
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .profile-block-container {
        width: 100%;
        padding: 20px 40px;
    }

    .single-input-field {
        width: 320px;
        display: flex;
        flex-direction: column;
        row-gap: 20px;
        position: relative;
    }
}

@media screen and (max-width: 500px) {
    .profile-block-container {
        width: fit-content;
        padding: 20px 50px;
    }

    .single-input-field {
        width: 300px;
    }

    .profile-select {
        height: 45px;
    }

    .single-input-field > input {
        height: 45px;
    }

    .one-input-field {
        width: 300px;
    }

    .profile-dropdown {
        min-width: 300px;
        position: relative;
    }

    .row-input-field {
        display: flex;
        flex-direction: column;
        row-gap: 30px;
    }

    select {
        width: 320px;
    }

    .btn.profile-btn-primary {
        width: 100%;
        padding: 20px;
    }
}

@media screen and (max-width: 380px) {
    .profile-block-container {
        width: 100%;
        padding: 20px 50px;
    }

    .header1 {
        font-size: 20px;
    }

    .single-input-field {
        width: 300px;
    }

    .profile-dropdown {
        min-width: 300px;
        position: relative;
    }

    .one-input-field {
        width: 300px;
    }

    .row-input-field {
        display: flex;
        flex-direction: column;
        row-gap: 10px;
    }

    select {
        width: 300px;
    }

    .btn.profile-btn-primary {
        width: 100%;
        padding: 20px;
    }
}

@media screen and (max-width: 320px) {
    .profile-block-container {
        width: 100%;
        padding: 20px 20px;
    }

    .details-flex-column {
        row-gap: 30px;
    }

    .single-input-field {
        width: 250px;
    }

    .profile-dropdown {
        min-width: 250px;
        position: relative;
    }

    .one-input-field {
        width: 250px;
    }

    .row-input-field {
        display: flex;
        flex-direction: column;
        row-gap: 1px;
    }

    select {
        width: 250px;
    }

    .profile-menu-item {
        height: 230px;
    }

    .btn.profile-btn-primary {
        width: 100%;
        padding: 20px;
        height: 45px;
    }
}
