/* ====================================================== */
/* CONTACT PAGE CSS - Mobile-First, Device & Orientation Aware */
/* ====================================================== */

/* === Base Styles (Mobile portrait default) === */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ADD8E6; /* light blue background */
  color: #111;               /* dark text for contrast */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

/* === Header & Navigation === */
header {
  width: 100%;
  padding: 0.5rem;
  background-color: rgba(0,0,128,0.25);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
  color: #FFD700;
  text-shadow: 0 0 5px #FFD700;
}

/* === Main Content === */
main {
  flex: 1;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.contact-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-form-column,
.contact-info-column {
  background-color: rgba(255,255,255,0.85);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  max-height: 85vh; /* reduce height by 15% */
  overflow-y: auto; /* scroll if content exceeds */
}

/* === Headings === */
h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #007BFF;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* === Vertical Stacked Form Styling === */
.contact-form {
  display: flex;
  flex-direction: column;  /* stack fields vertically */
  gap: 0.5rem;             /* spacing between label + input pairs */
}

.contact-form label {
  display: block;          /* label on its own line */
  font-weight: 600;
  margin-bottom: 0.25rem; /* smaller gap below label */
}

.contact-form input,
.contact-form textarea {
  width: 100%;             /* full width input */
  display: block;          /* ensure vertical stacking */
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0,123,255,0.5);
  outline: none;
}

.contact-form button {
  width: 50%;              /* smaller than full width */
  align-self: flex-start;  /* left-aligned */
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background-color: #007BFF;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* === Contact Info Section === */
.contact-info h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #007BFF;
}

.contact-info p {
  margin: 0.3rem 0;
}

.contact-info a {
  color: #007BFF;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 5px 0;
  font-size: 0.8rem;
  background-color: rgba(0,0,128,0.1);
  color: #111;
}

/* === Responsive Layouts === */
@media (min-width: 768px) {
  .contact-columns {
    flex-direction: row;
    gap: 2rem;
  }
  .contact-form-column,
  .contact-info-column {
    flex: 1 1 50%;
  }
}

@media (max-width: 767px) {
  main { padding: 1rem; }
  .contact-columns { flex-direction: column; }
}
