/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Playfair+Display:wght@400;700&display=swap');

/* Background + global text */
body {
  padding-top: 70px; /* safer for all devices */
  font-family: 'Playfair Display', sans-serif;
  background: url('../images/fmc-images/background/background1.png')
              no-repeat center center;
  background-size: cover;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}

/* Dark overlay for readability */
body::before {
  content: "";
  position: absolute; /* fixed breaks on iPhones */
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

/* Center all main content */
main {
  text-align: center;
}

/* Layout spacing */
.starter-template {
  padding: 3rem 1.5rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bungee', sans-serif;
}

/* Paragraphs */
p {
  font-family: 'Playfair Display', sans-serif;
}

/* Service cards */
.service_card {
  background-color: #f5f5f5;
  color: #222;
  border-radius: 12px;
  padding: 1rem;
}

/* Images inside cards */
.service_card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .services {
    grid-template-columns: 1fr;
  }

  .service_card {
    padding: 0.75rem;
  }

  form {
    padding: 1rem;
  }
}

/* Logo */
.logo-wrap {
  text-align: center;
  margin-top: 20px;
}

.site-logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.site-title {
  margin-top: 10px;
}

/* FORM STYLING — CLEANED & FIXED */
form {
  max-width: 600px;
  margin: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Labels */
label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

/* Inputs */
input, select, textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 2px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s;
}

/* Focus state */
input:focus, select:focus, textarea:focus {
  border-color: #0077ff;
  outline: none;
}

/* Valid / invalid states */
input:valid, select:valid, textarea:valid {
  border-color: #28a745;
}

input:invalid, select:invalid, textarea:invalid {
  border-color: #dc3545;
}

/* Submit button */
button {
  background: #2d2d2d;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #1a1a1a;
}

/* Centered list styling */
ul {
  list-style-position: inside;
  padding-left: 0;
  text-align: center;
}