/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  position: relative;
  z-index: 1001;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: #000;
}

.modal h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #4a5568;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4299e1;
  outline: none;
}

.phone-input {
  display: flex;
  gap: 10px;
}

.social-login {
  text-align: center;
  margin: 25px 0;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.social-login p {
  margin-bottom: 15px;
  color: #718096;
}

.register-link,
.login-link {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.register-link a,
.login-link a {
  color: #4299e1;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover,
.login-link a:hover {
  text-decoration: underline;
}

.user-menu {
  position: relative;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 150px;
  z-index: 1000;
}

.user-menu:hover .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 10px 15px;
  color: #4a5568;
  text-decoration: none;
}

.user-dropdown a:hover {
  background-color: #f7fafc;
}

/* Responsive styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }

  .phone-input {
    flex-direction: column;
  }

  .phone-input select,
  .phone-input input {
    width: 100%;
  }
}

/* Google Login Button Styles */
.google-login-btn {
  margin: 15px 0;
  display: flex;
  justify-content: center;
}

.google-login-btn > div {
  width: 100%;
  max-width: 280px;
}

.login-divider {
  text-align: center;
  margin: 15px 0;
  color: #666;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background-color: #ddd;
}

.login-divider::before {
  left: 0;
}

.login-divider::after {
  right: 0;
}

/* Login modal specific */
#loginModal .modal-content {
  max-width: 400px;
}

#loginModal .form-group {
  margin-bottom: 15px;
}

#loginModal label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

#loginModal input[type="text"],
#loginModal input[type="email"],
#loginModal input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}
