/*--------------------------------------
  Enhanced Contact Page CSS
----------------------------------------*/

/* CSS Variables for easy theme management */
:root {
  --primary-color: #003366;
  --primary-hover: #002244;
  --accent-color: #ffd400;
  --bg-color: #ffffff;
  --text-color: #333333;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #f9f9f9;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh; /* 100% of the viewport height */
}

/*--------------------------------------
  Container
----------------------------------------*/
.container {
  max-width: 700px;
  margin: 3rem auto;
  background-color: var(--bg-color);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.8s ease;
}

/* Centering utility */
.center {
  text-align: center;
}

/*--------------------------------------
  Headings
----------------------------------------*/
h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/*--------------------------------------
  Contact Form Styling
----------------------------------------*/
.contactform {
  width: 100%;
  margin-top: 2rem;
  max-width: 700px;
}

.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Ensure the form inputs and textarea are block-level elements that fill the container */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}


/* Focus state with a subtle box-shadow */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 51, 102, 0.2);
  outline: none;
}

/* Mark required fields */
.required {
  color: #cc0000;
}

/*--------------------------------------
  Button Styling (Full-Width Button)
----------------------------------------*/
.btn {
  display: inline-block;
  width: 60%;  /* Full width */
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  text-decoration: none;
  margin-top: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: scale(1.02);
}

/*--------------------------------------
  Success & Error Messages
----------------------------------------*/
.success-message,
.error-message {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/*--------------------------------------
  Animations
----------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*--------------------------------------
  Responsive Design for Mobile Devices
----------------------------------------*/
@media (max-width: 600px) {
  .container {
    margin: 1rem;
    padding: 1.8rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  p,
  label {
    font-size: 0.95rem;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
}
.footer {
  position: absolute;
  bottom: 0;
}
