:root {
  --primary-color: #768ea0; /* Muted Blue - Stronger for text/buttons */
  --secondary-color: #9dc4e0; /* Light Blue - Accents */
  --bg-color: #f0ede5; /* Cream - Background */
  --text-color: #5a6a58; /* Keeping a dark tone for readability, or use primary */
  --white: #ffffff;
  --font-heading: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, #dcd6cc 100%);
  background-image:
    url("ulai_background.png"),
    linear-gradient(135deg, var(--bg-color) 0%, #dcd6cc 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--primary-color);
  position: relative;
  padding: 2rem 0;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 237, 229, 0.6); /* Adjusted tint to cream */
  backdrop-filter: blur(5px);
  z-index: 1;
}

.content-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem;
  max-width: 600px; /* Slightly narrower for form focus */
  width: 90%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(118, 142, 160, 0.15); /* Shadow using primary color tone */
  animation: fadeIn 1.5s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo-container {
  margin-bottom: 2rem;
}

.logo {
  max-width: 200px;
  height: auto;
}

.message-container h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem; /* Slightly regulated size */
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--primary-color);
}

.message-container p {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

/* Subscription Form Styles */
.subscription-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}

input[type="email"] {
  padding: 12px 20px;
  border: 2px solid var(--secondary-color);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 60%;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--primary-color);
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
}

input[type="email"]::placeholder {
  color: #aab8c2;
}

button {
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

button:hover {
  background-color: #5d7485; /* Darker shade of primary */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(118, 142, 160, 0.3);
}

.helper-text {
  font-size: 0.85rem;
  color: #8899a6;
  margin-top: 0.5rem;
  font-weight: 400;
}

.success-message {
  display: none; /* Hidden by default */
  background-color: rgba(157, 196, 224, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.success-message p {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

/* Loader Animation - Updated Color */
.loader {
  display: none; /* Hidden unless loading */
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}
.dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .content-container {
    padding: 2rem 1rem;
    margin: 1rem;
    width: 90%;
  }

  .message-container h1 {
    font-size: 1.8rem;
  }

  .logo-placeholder {
    font-size: 2.5rem;
  }

  .input-group {
    flex-direction: column;
    align-items: center;
  }

  input[type="email"] {
    width: 100%;
    margin-bottom: 10px;
  }

  button {
    width: 100%;
  }
}

/* Contact Section */
.contact-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(118, 142, 160, 0.2);
}

.contact-section h3 {
  font-family: var(--font-body);
  font-size: 1.1rem; /* Slightly smaller for body font */
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700; /* Bold for Lato */
}

.branches-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.branch-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  background-color: var(--white);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color); /* Added border to look like button */
  align-items: center; /* Center content */
  min-width: 140px; /* Ensure consistent width */
}

.branch-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(118, 142, 160, 0.2);
  border-color: var(--secondary-color);
}

.branch-link:hover .branch-name,
.branch-link:hover .branch-number {
  color: var(--white); /* Change text to white on hover */
}

.branch-name {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.branch-number {
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

@media (max-width: 600px) {
  .branches-container {
    flex-direction: column;
    gap: 1rem;
  }

  .branch-link {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
  }

  .branch-name {
    margin-bottom: 0;
  }
}
