@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


/* ===============================
   GLOBAL RESET
================================ */
*,
*::before,
*::after {
   box-sizing: border-box;
}

body {
   /* font-family: "Montserrat", sans-serif; */
   margin: 0;
}

.error {
   color: red;
}

/* ===============================
   PAGE BACKGROUND
================================ */
.user-profile-page {
   width: 100%;
   min-height: 100vh;
   background-image: url("../images/section-bg02.png");
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   padding: 50px 20px;
   display: flex;
   justify-content: center;
   align-items: flex-start;
}

/* ===============================
   MAIN PROFILE CARD
================================ */
.user-profile-wrapper {
   width: 100%;
   max-width: 1400px;
   /* ✅ INCREASED WIDTH */
   background: #ffffff;
   display: grid;
   grid-template-columns: 320px 20px 1fr;
   gap: 00px;
   padding: 20px;
   border-radius: 18px;
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ===============================
   LEFT SECTION
================================ */
.profile-section-left {
   text-align: center;
   padding: 25px 20px;
   background: linear-gradient(180deg, #ffffff, #fafafa);
   border-radius: 14px;
}

/* .profile-section-title {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    color: #cf2030;
    margin-bottom: 30px;
} */

/* ===============================
   PROFILE IMAGE
================================ */
.avatar-container {
   width: 180px;
   height: 180px;
   margin: 0 auto;
   position: relative;
}

.avatar-image {
   width: 100%;
   height: 100%;
   border-radius: 50%;
   border: 5px solid #cf2030;
   object-fit: cover;
}

.avatar-upload-icon {
   width: 46px;
   height: 46px;
   background: #cf2030;
   border-radius: 50%;
   position: absolute;
   bottom: 8px;
   right: 8px;
   display: flex;
   justify-content: center;
   align-items: center;
   cursor: pointer;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.avatar-upload-icon img {
   width: 22px;
   height: 22px;
}

/* ===============================
   VERTICAL DIVIDER
================================ */
.profile-divider {
   width: 2px;
   background: #eeeeee;
   border-radius: 10px;
}

/* ===============================
   RIGHT FORM SECTION
================================ */
.profile-section-right {
   width: 100%;
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 10px 16px;
}

/* ===============================
   FORM FIELDS
================================ */
.form-field {
   display: flex;
   flex-direction: column;
}

.form-field label {
   font-size: 14px;
   font-weight: 600;
   color: #cf2030;
   margin-bottom: 6px;
}

.form-field input {
   height: 48px;
   padding: 12px 14px;
   border-radius: 8px;
   border: 1px solid #ddd;
   background: #f9f9f9;
   font-size: 14px;
   transition: all 0.3s ease;
}

.form-field input:focus {
   border-color: #cf2030;
   background: #ffffff;
   outline: none;
}

/* ===============================
   BUTTON
================================ */
.form-buttons {
   grid-column: span 2;
   vertical-align: middle !important;
}

.form-buttons .visitor-btn {
   width: 100%;
   height: 52px;
   background: #cf2030;
   color: #ffffff;
   font-size: 16px;
   font-weight: 600;
   border-radius: 10px;
   border: none;
   transition: all 0.3s ease;
}

.form-buttons .visitor-btn:hover {
   background: #a41a29;
}

/* ===============================
   TABLET VIEW
================================ */
@media (max-width: 992px) {
   .user-profile-wrapper {
      grid-template-columns: 1fr;
      padding: 30px;
   }

   .profile-divider {
      display: none;
   }

   .profile-section-right {
      grid-template-columns: 1fr;
   }

   .form-buttons {
      grid-column: span 1;
   }
}

/* ===============================
   MOBILE VIEW
================================ */
@media (max-width: 576px) {
   .user-profile-wrapper {
      padding: 22px;
   }

   .avatar-container {
      width: 140px;
      height: 140px;
   }

   .profile-section-title {
      font-size: 22px;
   }

   .form-buttons .visitor-btn {
      height: 46px;
      font-size: 15px;
   }
}


/*====== sign in button responsive=========*/
.mobile-member input {
   display: none;
}

/* Member header row */
.member-label {
   display: flex;
   justify-content: space-between;
   align-items: center;
   cursor: pointer;
   font-weight: 600;
   padding: 8px 0;
}

/* + icon */
.plus-icon {
   font-size: 22px;
   font-weight: bold;
   transition: transform 0.3s ease;
}

/* Submenu hidden by default */
.mobile-member-submenu {
   display: none;
   list-style: none;
   padding-left: 15px;
   margin-top: 8px;
}

/* Submenu links */
.mobile-member-submenu li a {
   font-size: 14px;
   padding: 6px 0;
   display: block;
}

/* Show submenu when checked */
.mobile-member input:checked~.mobile-member-submenu {
   display: block;
}

/* Rotate + to × */
.mobile-member input:checked+.member-label .plus-icon {
   transform: rotate(45deg);
}

/* ================= MOBILE MEMBER BORDER FIX ================= */

/* Style ONLY the Member item */
.mobile-member>a {
   display: flex !important;
   align-items: center;
   justify-content: space-between;
   padding: 5px 18px !important;
   border: 1px solid #CF2030;
   border-radius: 30px;
   color: #CF2030 !important;
   font-weight: 600;
   margin: 20px 10px;
}

/* Keep + icon (slicknav) visible and aligned */
.mobile-member>a .slicknav_arrow {
   color: #CF2030;
   font-size: 18px;
}

/* Remove background hover issue */
.mobile-member>a:hover {
   background: transparent !important;
   color: #CF2030 !important;
}

/* Submenu spacing */
.mobile-member-submenu {
   margin-left: 15px;
   margin-top: 6px;
}

/* Submenu items clean look */
.mobile-member-submenu li a {
   font-size: 14px;
   padding: 6px 0 !important;
}