/* Avatar block */

.avatar-block {
    background: linear-gradient(180deg, #ffffff, #f9f9f9);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.avatar-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, #836a6a, #f08080);
    border-bottom-left-radius: 50% 40%;
    border-bottom-right-radius: 50% 40%;
    animation: wave 6s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(250, 100, 100, 0.4);
    z-index: 0;
}

.avatar-block::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient( circle at center, rgba(255, 140, 140, 0.08), transparent 70%);
    transform: translateX(-50%);
    z-index: 0;
}

.avatar-block:hover {
    transform: translateY(-4px);
}

.avatar-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(180deg, #fff, #f6f6f6);
    border: 3px solid rgba(255, 122, 122, 0.25);
    overflow: hidden;
    transition: all 0.3s ease;
}

.avatar-circle.has-image {
    border: 2px solid #fa6464;
    box-shadow: 0 0 12px rgba(250, 100, 100, 0.4);
}

.avatar-circle:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-text {
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 0.3px;
    z-index: 1;
    text-shadow: 0 1px 0 #fff;
}

.btn-outline-accent {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff;
}

.btn-link.text-danger {
    font-size: 0.9rem;
    color: #ff5555 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-link.text-danger:hover {
    color: #ff0000 !important;
    text-decoration: underline;
    border: 1px solid var(--accent);
}

#uploadBtn {
    position: relative;
    z-index: 1;
}

#removeAvatar {
    position: relative;
    z-index: 2;
    cursor: pointer;
    text-decoration: none;
}

.avatar-block hr {
    margin: 2rem auto;
    border: none;
    border-top: 1px dashed rgba(255, 122, 122, 0.2);
    width: 80%;
}

.summary {
    background: linear-gradient(90deg, #fff, #fff5f5);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.9;
    border: 1px solid rgba(255, 122, 122, 0.15);
    position: relative;
}

.summary strong {
    color: var(--accent);
}

.text-srtong {
    text-align: right;
}

@media (max-width: 992px) {
    .avatar-block {
        padding: 1.5rem;
    }
    .avatar-circle {
        width: 130px;
        height: 130px;
    }
    .summary {
        font-size: 0.85rem;
    }
}


/* Buttons */

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    border: none;
    transition: all var(--transition);
}

.btn-accent:hover {
    transform: translateY(-3px);
    background: var(--accent);
    color: white;
}


/* .btn-outline-accent {
    border: 1px solid rgba(250, 100, 100, 0.18);
    color: #222;
  } */


/* -------- Labels -------- */

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
}

.form-control,
.form-select {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fcfcfc;
    border-radius: 12px;
    padding: 0.50rem 1rem;
    font-weight: 500;
    font-size: 12px;
    color: #222;
    box-shadow: none;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}


/* select2 */

.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: #fcfcfc !important;
    border-radius: 12px !important;
    padding: 0.50rem 1rem !important;
    font-weight: 500;
    font-size: 12px;
    color: #222;
    box-shadow: none !important;
    transition: all 0.25s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
    color: #222;
    padding-left: 0;
    padding-right: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    left: 10px;
    /* برای RTL */
}

.select2-dropdown {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.select2-search__field {
    border-radius: 8px !important;
}

.select2-container {
    width: 100% !important;
}


/* end select2 */

.form-control::placeholder {
    color: #aaa;
    opacity: 0.9;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(0, 0, 0, 0.18);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-control:focus::after,
.form-select:focus::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, rgba(250, 100, 100, 0), var(--accent), rgba(250, 100, 100, 0));
    border-radius: 4px;
    animation: glowline 0.35s ease forwards;
}

@keyframes glowline {
    from {
        opacity: 0;
        transform: scaleX(0.6);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.composite-email {
    display: flex;
    align-items: stretch;
    flex-direction: row-reverse;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: #fcfcfc;
    transition: all 0.25s ease;
    position: relative;
}

.composite-email input {
    border: none;
    background: transparent;
    padding: 0.85rem 10px;
    font-weight: 500;
    color: #222;
}

.composite-email select {
    width: 15%;
    min-width: 100px;
    border: none;
    background: #eeeeeed4;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 500;
    color: #333;
    border-radius: 0px;
    direction: ltr;
    text-align: center;
    font-size: 11px;
}

.composite-email input:focus,
.composite-email select:focus {
    outline: none;
}

.composite-email:focus-within {
    border-color: var(--accent);
    background: #fff;
}

.composite-email::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(270deg, rgba(250, 100, 100, 0), var(--accent), rgba(250, 100, 100, 0));
    border-radius: 4px;
    opacity: 0;
    transform: scaleX(0.6);
    transition: all 0.35s ease;
    pointer-events: none;
}

.composite-email:focus-within::after {
    opacity: 0.5;
    transform: scaleX(1);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23999' height='16' viewBox='0 0 20 20' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.516 7.548l4.484 4.443 4.484-4.443L16 8.986l-6 5.986-6-5.986z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 14px;
}

.form-text {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 3px;
}


/* -------- Small Tweaks -------- */

input[type="date"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="text"],
select {
    transition: border-color 0.2s ease;
}

input:focus-visible,
select:focus-visible {
    outline: none;
}

@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 rgba(250, 100, 100, 0);
    }
    50% {
        box-shadow: 0 0 8px rgba(250, 100, 100, 0.25);
    }
    100% {
        box-shadow: 0 0 0 rgba(250, 100, 100, 0);
    }
}

.form-control:focus,
.form-select:focus,
.composite-email:focus-within {
    animation: softPulse 0.6s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #fa6464 !important;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

@media (max-width: 576px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    .header-left,
    .header-right {
        width: 100%;
    }
    .flag {
        width: 32px;
        height: 30px;
    }
    .avatar-circle {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }
    .btn-outline-secondary {
        padding: 10px !important;
    }
    .btn-accent {
        padding: 10px !important;
    }
}

.card .text-muted {
    color: #6b6b6b;
    text-align: right !important;
}


/* step2 */


/* password-div */

.password-div {
    position: relative;
}

.password-div i {
    position: absolute;
    top: 35px;
    left: 15px;
    z-index: 100;
    cursor: pointer;
}