:root {
  --primary: #30f4e0; /* Richer gold for a premium feel */
  --primary-dark: #e0b020;
  --secondary: #e0b020; /* Coral accent for subtle contrast */
  --black: #1a1a1a;
  --light: #f8f8f8;
  --gray: #999;
  --error: #f44336;
  --success: #4caf50;
}

/* Contact Hero Section */
.contact-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("/static/lessons/images/range-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 200px 0 120px;
  text-align: center;
  margin-top: 84px;
  position: relative;
  overflow: hidden;
  font-family: "Roboto", "Segoe UI", sans-serif;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(232, 185, 35, 0.1) 10%,
    transparent 70%
  );
  z-index: 1;
}

.contact-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 3.8rem;
  color: var(--light);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  font-weight: 700;
}

.contact-hero h1 span {
  color: var(--primary);
  font-weight: 900;
}

.contact-hero p {
  font-size: 1.4rem;
  max-width: 850px;
  margin: 0 auto 50px;
  line-height: 1.8;
  color: var(--light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.package-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--black);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.package-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.package-btn:hover::after {
  width: 300px;
  height: 300px;
}

.package-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(232, 185, 35, 0.5);
}

.package-btn i {
  margin-right: 10px;
}

/* Contact Container */
.contact-container {
  padding: 100px 20px;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.95),
    rgba(10, 10, 10, 0.98)
  );
}

.section-title {
  text-align: center;
  font-size: 2.7rem;
  color: var(--primary);
  margin-bottom: 70px;
  text-transform: uppercase;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease-out forwards;
}

.section-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  margin: 20px auto 0;
  border-radius: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: linear-gradient(
    145deg,
    rgba(45, 45, 45, 0.75),
    rgba(25, 25, 25, 0.85)
  );
  border-radius: 16px;
  padding: 35px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 10px rgba(232, 185, 35, 0.1);
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease 0.3s forwards;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 12px rgba(232, 185, 35, 0.2);
  border-color: var(--primary);
}

.contact-header {
  margin-bottom: 25px;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--gray);
  font-size: 1.15rem;
}

.contact-details i {
  color: var(--primary);
  margin-top: 4px;
  font-size: 1.3rem;
}

.contact-details a {
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.social-links a {
  color: var(--primary);
  font-size: 1.4rem;
  transition: all 0.4s ease;
  position: relative;
}

.social-links a:hover {
  color: var(--secondary);
  transform: translateY(-4px) rotate(5deg);
}

.contact-meta {
  margin-top: 25px;
}

.contact-meta small {
  color: var(--gray);
  font-size: 0.95rem;
  font-style: italic;
}

.contact-form {
  padding: 25px 0;
  position: relative;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-group label {
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--light);
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  pointer-events: none;
  padding: 0 5px;
  background: transparent;
  z-index: 1;
}

.form-group .form-control:focus + label,
.form-group .form-control:not(:placeholder-shown) + label {
  top: -12px;
  left: 12px;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--black);
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-control {
  width: 95%;
  padding: 16px 20px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(232, 185, 35, 0.5);
  border-radius: 8px;
  color: var(--light);
  font-size: 1.05rem;
  font-family: "Roboto", sans-serif;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 0 12px rgba(232, 185, 35, 0.6),
    inset 0 0 8px rgba(232, 185, 35, 0.3);
}

.form-control::placeholder {
  color: transparent;
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--error);
  box-shadow: 0 0 8px rgba(244, 67, 54, 0.4);
}

.form-control:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--success);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
  padding-top: 18px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--black);
  border: none;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 1.05rem;
  width: 95%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.submit-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::after {
  width: 400px;
  height: 400px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(232, 185, 35, 0.5);
}

.submit-btn:disabled {
  background: var(--gray);
  cursor: not-allowed;
  box-shadow: none;
}

/* Map Container */
.map-container {
  margin-top: 50px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(232, 185, 35, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease 0.5s forwards;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* Hours Section */
.hours-section {
  padding: 100px 20px;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.95),
    rgba(15, 15, 15, 0.98)
  );
}

.hours-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hours-title {
  text-align: center;
  font-size: 2.7rem;
  color: var(--primary);
  margin-bottom: 50px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease 0.4s forwards;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(
    145deg,
    rgba(45, 45, 45, 0.75),
    rgba(25, 25, 25, 0.85)
  );
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(232, 185, 35, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease 0.6s forwards;
}

.hours-table tr:nth-child(even) {
  background: rgba(232, 185, 35, 0.05);
}

.hours-table tr:hover {
  background: rgba(232, 185, 35, 0.1);
  transition: background 0.3s ease;
}

.hours-table td {
  padding: 18px 25px;
  border-bottom: 1px solid rgba(232, 185, 35, 0.15);
  color: var(--light);
  font-size: 1.15rem;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.feature-name {
  font-weight: 600;
  color: var(--primary);
  width: 40%;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("/static/lessons/images/gallery5.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.cta-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease 0.8s forwards;
}

.cta-title {
  font-size: 2.7rem;
  color: var(--primary);
  margin-bottom: 25px;
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.cta-description {
  font-size: 1.3rem;
  margin-bottom: 50px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.btn {
  padding: 16px 40px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.4s ease;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--black);
  border: none;
  animation: pulse 2s infinite ease-in-out;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(232, 185, 35, 0.5);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
  width: 400px;
  height: 400px;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  60% {
    opacity: 0.6;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 185, 35, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(232, 185, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 185, 35, 0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-hero h1 {
    font-size: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hours-table td {
    display: block;
    width: 100%;
    text-align: center;
  }
  .feature-name {
    width: 100%;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 160px 0 90px;
    background-attachment: scroll;
  }
  .contact-hero h1 {
    font-size: 2.4rem;
  }
  .contact-hero p {
    font-size: 1.2rem;
  }
  .section-title,
  .hours-title {
    font-size: 2.2rem;
  }
  .cta-title {
    font-size: 2.2rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .map-container iframe {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 2rem;
  }
  .section-title,
  .hours-title {
    font-size: 1.9rem;
  }
  .contact-title {
    font-size: 1.7rem;
  }
  .contact-details li {
    font-size: 1.05rem;
  }
  .map-container iframe {
    height: 300px;
  }
  .form-control {
    font-size: 0.95rem;
  }
  .submit-btn,
  .btn {
    padding: 14px 30px;
  }
}
