/* account.css */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;

  background-image: url('/images/wallpapers/sky-and-grass.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  backdrop-filter: blur(8px);
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

header {
  background-color: #990000;
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 4px solid #000000;
}

.branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: 10px;
}

.branding img.logo {
  height: 120px;
  width: auto;
  margin-bottom: 0.1rem;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .branding img.logo {
    height: 90px;
  }
}

.title-group h1 {
  font-family: 'Cambria', serif;
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
}

.title-group .tagline {
  font-family: 'Segoe Script', cursive;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #f3f6f4;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-buttons a {
  background-color: #bf9000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-buttons a:hover {
  background-color: #25626f;
  color: #fff;
}

.nav-buttons a.active {
  background-color: #25626f;
  color: #fff;
}

/* Registration Form Styles */
.registration-container {
  max-width: 720px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.registration-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #990000;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.form-group select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f9f9f9;
  color: #333;
  appearance: none; /* removes default styling */
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group select:focus {
  border-color: #7d5fff;
  box-shadow: 0 0 0 3px rgba(125, 95, 255, 0.3);
  outline: none;
}

.form-group select:hover {
  border-color: #aaa;
}

.username-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.username-input-wrapper .at-symbol {
  position: absolute;
  left: 10px;
  font-weight: bold;
  color: #555;
  pointer-events: none;
}

.username-input-wrapper input {
  padding-left: 25px !important;
  width: 100%;
}

.phone-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.country-code-select {
  padding: 0.6rem 2.5rem 0.6rem 0.75rem; /* extra space for chevron */
  min-width: 120px; /* or adjust wider for visibility */
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  font-size: 1rem;
  font-family: inherit;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.country-code-select:focus {
  border-color: #7d5fff;
  box-shadow: 0 0 0 3px rgba(125, 95, 255, 0.3);
  outline: none;
}

.phone-input-wrapper input[type="tel"] {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f9f9f9;
}

.note-required {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1.5rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkbox-group label {
  font-weight: normal;
  background-color: #f9f9f9;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button[type="submit"],
button#googleSignIn {
  background-color: #990000;
  color: #fff;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

button[type="submit"]:hover,
button#googleSignIn:hover {
  background-color: #bf0000;
}

.google-signin img {
  width: 65px;
  height: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.or-divider {
  text-align: center;
  margin: 1.5rem 0;
  font-weight: bold;
  color: #666;
}

.disclaimer {
  font-size: 0.8rem;
  color: #555;
  margin-top: 1rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .registration-container {
    margin: 1rem;
    padding: 1.5rem;
  }
}

/* === PROFILE PAGE EXTENSIONS === */

.profile-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.profile-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 600px;
}

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.avatar-section img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4267b2;
  margin-bottom: 1rem;
}

#change-avatar-btn {
  background-color: #4267b2;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

#change-avatar-btn:hover {
  background-color: #365899;
}

#profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f9f9f9;
}

.form-group input:disabled {
  background-color: #eaeaea;
  color: #666;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.form-actions button {
  height: 3rem; /* or any consistent value you prefer */
  padding: 0 1rem; /* optional, adjusts horizontal spacing inside the button */
  font-size: 1rem; /* optional, ensures text size consistency */
  line-height: 1; /* helps vertically center the text */
}

#save-profile-btn {
  background-color: #28a745;
  color: white;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

#save-profile-btn:hover {
  background-color: #218838;
}

.signout-btn {
  min-width: 7rem;
  white-space: nowrap;
  background-color: #dc3545;
  color: white;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.signout-btn:hover {
  background-color: #c82333;
}

/* === RESPONSIVENESS === */
@media (max-width: 768px) {
  .profile-container {
    padding: 1rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  #save-profile-btn,
  .signout-btn {
    width: 100%;
  }
}

.form-switch-text {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #888;
}

.form-switch-text a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.form-switch-text a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: white;
}
