:root {
  --yellow: #ffd700;
  --black: #000000;
  --white: #ffffff;
  --light-gray: #f9f9f9;
  --dark-gray: #1e1e1e;
  --border: #dddddd;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  line-height: 1.6;
}

.page-wrapper {
  overflow-x: hidden;
}

/* --- Page Header --- */
.page-header {
  background-color: var(--black);
  color: var(--yellow);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Contact Section --- */
.contact-section {
  padding: 4rem 2rem;
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* --- Card --- */
.card {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* --- Contact Form --- */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.radio-group {
  display: grid;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: center;
}

.radio-option input {
  margin-right: 0.5rem;
}

.btn-primary {
  background-color: var(--yellow);
  color: var(--black);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #e6c200;
}

/* --- Contact Info --- */
.contact-info h2 {
  color: var(--black);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon i {
  font-size: 1.5rem;
  color: var(--yellow);
  margin-right: 1rem;
}

.contact-info-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--black);
}

.contact-info-content p {
  margin: 0;
}

/* --- Office Hours --- */
.office-hours h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.office-hours-list {
  border-top: 1px solid var(--border);
}

.office-hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

/* --- Map Section --- */
.map-section {
  margin-top: 2rem;
}

.map-container iframe {
  border: none;
  width: 100%;
  height: 450px;
  display: block;
  border-radius: 8px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .btn-primary {
    font-size: 1rem;
  }
}

/* Footer */
.footer {
  background-color: #111;
  color: #ccc;
  padding: 40px 20px 30px;
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
  /* overflow: hidden; */
}

.footer .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  width: 100%;
  flex-wrap: wrap;
  /* overflow: hidden; */
}

.footer-logo img {
  margin-bottom: 15px;
  width: 180px;
  height: auto;
  border-radius: 10px;
}

.footer-info p {
  margin-bottom: 20px;
}

.social-links a {
  color: #ccc;
  font-size: 18px;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #f6b800;
}

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: bold;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #f6b800;
}

.footer-contact ul li i {
  margin-right: 10px;
  color: #f6b800;
}

.footer-bottom {
  background-color: #111;
  /* border-top: 1px solid #333; */
  width: 100%;
  /* margin-top: 40px; */
  /* padding-top: 20px; */
  text-align: center;
  color: #f6b800;
  font-size: 14px;
  display: block;
  grid-column: 1 / -1; /* full width if inside grid accidentally */
  clear: both; /* avoids float or flex collision */
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr; /* stacks all blocks */
    gap: 20px;
  }

  .footer-logo img {
    width: 140px;
  }

  .footer-bottom {
    font-size: 12px;
    padding: 16px 0 8px;
  }
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #f6b800;
  color: #000;
  border: none;
  border-radius: 50%;
  padding: 12px 14px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  display: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
  background-color: #fff;
  transform: scale(1.1);
}

/* Success/Failure Popup */
.success-message {
  background-color: #e6ffed;
  color: #1a7f37;
  padding: 10px 15px;
  border-left: 4px solid #22c55e;
  margin-top: 20px;
  border-radius: 4px;
}

.error-message {
  background-color: #ffe6e6;
  color: #b91c1c;
  padding: 10px 15px;
  border-left: 4px solid #ef4444;
  margin-top: 20px;
  border-radius: 4px;
}

/* Media Queries */
@media (max-width: 768px) {
  .success-message,
  .error-message {
    font-size: 0.8rem;
  }
}

/* Media Queries */
@media (max-width: 480px) {
  .success-message,
  .error-message {
    font-size: 0.6rem;
  }
}
