*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px; /* base font size for the whole page */
}

body {
  font-family: Arial, sans-serif;  
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 1rem;  /* smaller padding for mobile */
  overflow-x: hidden; /* prevent jitter from scrollbars */
}

/* Fixed, stable background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* lock to viewport height */
  background: 
    linear-gradient(
      to bottom right,
      rgba(255, 218, 185, 0.7),
      rgba(255, 228, 196, 0.5)
    ),
    url('images/bg.png') center/cover no-repeat;
  z-index: -1;
  transform: translateZ(0); /* prevent subtle repaint issues on mobile */
  will-change: transform;   /* hint for GPU acceleration */
}

.content-box {
  background: rgba(255, 255, 255, 0.85); /* subtle transparency to blend with background */
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  max-width: 500px;   /* keep it readable on large phones */
  width: 100%;
  backdrop-filter: blur(4px); /* optional: softens the image behind */
}

.content-row {
  display: flex;
  flex-direction: column; /* stack vertically by default */
  gap: 0.75rem;
  text-align: center;
}

.image-col img {
  width: 100%;
  height: 220px;        /* fixed height for mobile */
  object-fit: cover;    /* crop nicely */
  border-radius: 12px;
  margin-bottom: 0; /* reduce or remove gap below image */
}

.text-col {
  text-align: center;
  flex: 1;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}

input[type="text"]:focus {
  border-color: #ff7b7b;
  box-shadow: 0 0 6px rgba(255, 123, 123, 0.4);
  outline: none;
}

/* Submit button */
button {
  background: #ff7b7b;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;   /* full-width button on mobile */
}

button:hover {
  background: #ff5252;
}

button:active {
  transform: scale(0.97);
}

/* Optional: enhance for larger screens */
/* @media (min-width: 768px) {
  .content-row {
    flex-direction: row;   side-by-side on bigger screens
    text-align: left;
  }

  .image-col img {
    max-width: 250px;
    height: auto;
  }
} */

a.button {
  display: block;            /* makes it take full width */
  width: 100%;               /* fill parent container */
  text-align: center;        /* center text inside */
  background: #ff7b7b;
  color: white;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;     /* remove underline */
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 1rem;      /* space between buttons */
}

a.button:hover {
  background: #ff5252;
}

a.button:active {
  transform: scale(0.97);
}

.map-container {
  position: relative;
  width: 100%;
  height: 300px; /* Adjust the height as per your design needs */
  border-radius: 12px;  /* Optional: matches rounded corners of other elements */
  overflow: hidden;     /* Ensures iframe doesn't overflow the container */
}

.map-container iframe {
  width: 100%;          /* Makes the iframe take up the full width */
  height: 100%;         /* Makes the iframe take up the full height */
  border: 0;
  border-radius: inherit; /* Matches the rounded corners of the container */
}

@media (max-width: 600px) {
  .map-container {
    height: 200px;  /* Shorten the map on small screens */
  }
}