body,
input,
select,
button,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
  box-sizing: border-box;
}

.title-my-data {
  text-align: center;
  background-color: var(--primary-color);
}

.title-my-data,
.title-my-data-content {
  background-color: var(--primary-color) !important;
  color: white !important;
  margin: 0;
  padding: 0.2em;
}

.form-customer-data {
  display: flex;
  width: 100%;
}
.form-customer-data form {
  width: 100%;
  box-sizing: border-box;
}

.personal-data-field {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.profile-section-title,
.contact-section-title,
.location-section-title {
  color: var(--title);
  font-weight: 800;
  font-style: extra-bold;
  margin: 0 0 0;
}

.profile-card {
  background-image: url("/assets/front/images/file.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  min-height: 250px;
}

.profile-picture {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  border: 4px solid var(--stroke);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.form-group-customer {
  margin-bottom: 0;
}

.form-group-customer label {
  font-weight: 600;
  color: var(--title);
  display: block;
  margin-bottom: 5px;
}

.form-group-customer input,
.form-group-customer select {
  border: 2px solid var(--stroke);
  background-color: var(--bg);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  color: var(--title);
  width: 100%;
}

#cpf {
  cursor: no-drop;
}

.form-group-customer input:read-only {
  cursor: default;
  outline: none;
}

.contact-section-container {
  display: flex;
}

.action-link {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #888;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  text-align: center;
  display: inline-block;
}

.action-link.save {
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 15px;
}

.action-link.cancel {
  color: #888;
  text-decoration: underline;
}

.action-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.edit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (max-width: 767.98px) {
  .form-group-customer {
    width: 100% !important;
  }

  .form-group-customer input,
  .form-group-customer select {
    width: 100% !important;
    max-width: 100%;
    display: block;
  }

  .profile-card {
    height: auto;
    min-height: 300px;
    margin-bottom: 20px;
    justify-content: center;
  }

  .profile-picture {
    height: 180px;
    width: 180px;
  }

  .action-link.save {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .profile-card {
    height: 220px;
    min-height: 220px;
  }
}

.login-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  font-family: sans-serif;
}

.login-modal-content {
  background-color: white;
  padding: 40px 30px;
  border-radius: 1rem;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #ff5722;
  border: none;
  border-radius: 5px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

.modal-header-text {
  margin-bottom: 30px;
}

.modal-header-text h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.modal-header-text p {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

#login-options-container {
  overflow: hidden;
}

.social-login-btn {
  display: flex;
  align-items: center;
  width: 100%;
  height: 2.4rem;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: white;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  color: #333;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
  opacity: 1;
  max-height: 100px;
}

.social-login-btn:hover {
  background-color: #f5f5f5;
}

.social-login-btn img {
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

.social-login-btn.hidden {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
  overflow: hidden;
}

#email-login-view {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 0;
}

#email-login-view.visible {
  max-height: 300px;
  opacity: 1;
}

#email-login-view .form-group {
  text-align: left;
  margin-bottom: 10px;
}

#email-login-view label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

#email-login-view input {
  width: 100%;
  height: 2.4rem;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.forgot-password-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #ff5722;
  margin-top: 5px;
  text-decoration: none;
  font-weight: bold;
}

.submit-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.4rem;
  padding: 15px;
  background-color: #FF0000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-login-btn:hover {
  background-color: #ff0000d8;
}

.modal-footer-text {
  margin-top: 30px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.modal-footer-text a {
  color: #ff5722;
  text-decoration: underline;
  font-weight: bold;
}

.footer-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 15px 0;
}

.modal-input-error {
  color: #E63946;
  font-size: 12px;
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 0;
  text-align: left;
}

.modal-error-alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}

#signup-options-container {
  overflow: visible;
}

#email-signup-view {
  max-height: none;
  overflow: visible;
  opacity: 1;
  margin-top: 25px;
  transition: none;
}

#email-signup-view .form-group {
  text-align: left;
  margin-bottom: 15px;
}

#email-signup-view label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

#email-signup-view input {
  width: 100%;
  height: 2.4rem;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #f0f0f0;
}

#email-signup-view .submit-login-btn {
  background-color: #FF0000;
}

#email-signup-view .submit-login-btn:hover {
  background-color: #D60000;
}

#show-email-signup-form-btn {
    display: none;
}

.login-modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.login-modal-content::-webkit-scrollbar {
  width: 8px;
}

.login-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.login-modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.login-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
