:root {
  --background-color: #f5f4f1;
  --default-color: #212529;
  --heading-color: #32220b;
  --accent-color: #736335;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

body {
  background-color: var(--background-color);
  color: var(--default-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* === Layouts & Containers === */
.profile-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.profile-header {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--surface-color);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(115, 99, 53, 0.1);
}

.profile-main-info {
   /* background-color: var(--contrast-color); */
  position: relative;
  border-radius: 8px;
  display: flex;

  /* width: 50%; */
  /* align-items: center;
  justify-content: space-between; */
  max-height: 700px;
}


.back-arrow {
  padding: 10px;
}

/* === Buttons === */
.button-group {
  padding-top: 10px;
}
.back-home-btn,
.save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  background-color: var(--accent-color);
  color: var(--surface-color);
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(115, 99, 53, 0.1);
  cursor: pointer;
}
.back-home-btn:hover,
.save:hover {
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(115, 99, 53, 0.2);
}

/* === Headings === */
.page-title {
  color: var(--heading-color);
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
}
.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* === Profile Image === */
.profile-image-container {
  text-align: center;
  margin-bottom: 20px;
  width: 100px;
  height: 100px;
}
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--contrast-color);
  box-shadow: 0 8px 24px rgba(115, 99, 53, 0.2);
  transition: transform 0.3s ease;
}
.profile-image:hover {
  transform: scale(1.05);
}

/* === Info Sections === */
.profile-main-info .info {
  background-color: var(--contrast-color);
  padding: 35px;
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: 30%; */
  width: auto;
  border-radius: 20px;
  /* box-shadow: 5px 5px 5px rgba(25, 14, 14, 0.1); */
}

.profile-info {
  /* width: 60%; */
 
  /* box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.1); */
  /* padding: 30px 30px 80px 30px; */
  border-radius: 16px;
  /* max-height: 400px; */
  position: relative;
}

.username {
  color: var(--contrast-color);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-align: center;
}

.profile-info .info-item {
  color: var(--accent-color);
  padding: 7px 0;
  font-size: 13px;
}
.info-label {
  font-weight: 700;
  color: var(--accent-color);
  min-width: 120px;
  font-size: 14px;
}
.info-label i {
  margin-right: 10px;
}
html[dir="rtl"] .info-label i {
  margin-right: 0;
  margin-left: 10px;
}

/* === Edit Profile Button === */
.edit-profile-btn {
  display: block;
  border: 2px solid var(--contrast-color);
  padding: 5px 25px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', Times, serif;
  /* color: var(--accent-color); */
  color: var(--contrast-color);
  /* background-color: var(--contrast-color); */
  background-color: #736335;
  width: fit-content;
  text-align: center;
  margin: 0 auto;
}
.edit-profile-btn:hover{
  color: #f5f4f1;
}
.edit-profile-btn i {
  margin-right: 10px;
}
html[dir="rtl"] .edit-profile-btn i {
  margin-right: 0;
  margin-left: 10px;
}

/* === Bookings Section === */
/* .bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
} */
.booking-card {
  background: var(--surface-color);
  border-radius: 20px;
  /* 
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden; */
}
.edit-profile-card h1{
  padding-bottom: 15px;
  font-size: 20px;
}
.edit-profile-card form{
 
}

 .form-profile{
  display: flex;
  flex-direction: column;
   border-radius: 14px;
 }
.edit-profile-card #id_address {
  height: 80px;   
  resize: vertical; 
}

/* === Responsive === */
@media (max-width: 768px) {
  .profile-container { padding: 15px; }
  .profile-header { padding: 25px; }
  /* .profile-image { width: 140px; height: 140px; } */
  .page-title { font-size: 2rem; }
  .username { font-size: 1.5rem; }
  /* .bookings-grid { grid-template-columns: 1fr; } */
  .info-item { flex-direction: column; align-items: flex-start; }
  .info-label { margin-bottom: 5px; }
  /* .edit-profile-btn { width: 200px; } */
  .profile-main-info{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: auto;
  }
  .profile-info{
    width: 100%;
  }
  .booking-card{
    width: 90%;
    margin: auto;
  }
  .form-profile{
    width: 96%;
    margin: auto;
    
  }

}
