/* === Root Variables for Theme === */
:root {
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --text-color: #0d6efd; /* primary blue */
  --secondary-text: #6b7280;
  --accent-color: #0d6efd;
  --hover-color: #0b5ed7;
  --button-bg: #0d6efd;
  --button-text: #fff;
  --border-radius: 12px;
  --shadow-light: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.35s;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === General Section Styling === */
section {
  padding: 80px 20px;
  background: var(--bg-color);
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: var(--text-color);
}

section p {
  font-size: 1rem;
  color: var(--secondary-text);
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* === Postcode Search Box === */
.postcode-container {
  background: var(--card-bg);
  padding: 50px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all var(--transition-speed) ease;
}

.postcode-container:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.postcode-container h2 {
  font-size: 1.75rem;
  color: var(--text-color);
  margin-bottom: 12px;
}

.postcode-container p {
  font-size: 0.95rem;
  color: var(--secondary-text);
}

/* === Input Field === */
.postcode-input input {
  width: 300px;
  max-width: 100%;
  padding: 14px 18px;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius);
  font-size: 1rem;
  outline: none;
  margin-top: 20px;
  transition: all var(--transition-speed) ease;
}

.postcode-input input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

/* === Button Styling === */
button, .btn-book {
  display: block;
  width: 240px;
  max-width: 90%;
  margin: 30px auto 0;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--button-text);
  background: var(--button-bg);
  border: none;
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

button:hover, .btn-book:hover {
  background: var(--hover-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* === Test Centre Cards === */
#centre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.centre {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px 25px;
  width: 280px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-speed) ease;
  text-align: left;
}

.centre:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.centre h2 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.centre h2 i {
  margin-right: 6px;
}

.centre p {
  font-size: 0.95rem;
  color: var(--secondary-text);
  line-height: 1.6;
}

.btn-book {
  text-align: center;
  display: block;
  margin: 20px auto 0;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px);}
  to { opacity: 1; transform: translateY(0);}
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}

section h1 { animation: fadeInDown 0.8s ease forwards; }
section p { animation: fadeInUp 0.8s ease forwards; }
.postcode-container { animation: zoomIn 0.8s ease forwards; }
.centre { animation: fadeInUp 0.8s ease forwards; }

/* === Responsive Design === */
@media (max-width: 768px) {
  .postcode-input input,
  button {
    width: 100%;
  }
  .centre {
    width: 90%;
  }
}
/* Remove underline from button text */
button, .btn-book {
    text-decoration: none; /* removes underline */
    display: block;
    margin: 0 auto; /* centers the button horizontally */
    text-align: center;
}

/* Optional: add some padding for nice spacing inside container */
.button-container {
    text-align: center; /* ensures button is centered inside div */
}
input[type="text"], 
button {
  display: block;
  margin: 10px auto; /* Top-bottom 10px gap */
}

input[type="text"] {
  width: 250px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button {
  background: #0a7cff;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background: #005ce6;
}
/* === Responsive Design === */
@media (max-width: 992px) {
  section {
    padding: 60px 15px;
  }
  section h1 {
    font-size: 2rem;
  }
  section p {
    font-size: 0.95rem;
    margin-bottom: 35px;
  }
}

@media (max-width: 768px) {
  .postcode-container {
    padding: 30px 20px;
  }
  .postcode-input input,
  button, 
  .btn-book {
    width: 100%;
    font-size: 1rem;
    padding: 12px 15px;
  }
  .centre {
    width: 100%;
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  section h1 {
    font-size: 1.6rem;
  }
  section p {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .postcode-input input {
    width: 100%;
    font-size: 0.95rem;
    padding: 12px;
  }

  button, .btn-book {
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 8px;
  }

  .centre {
    width: 100%;
    margin: 0 auto;
    padding: 18px 15px;
  }

  .centre h2 {
    font-size: 1.1rem;
  }

  .centre p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}
