/* ======= ROOT VARIABLES ======= */
:root {
  --primary-color: #1a5f7a;
  --primary-dark: #174c61;
  --primary-light: #57c3ff;
  --accent-color: #ff7e33;
  --light-bg: #f9fafb;
  --hover-bg: #eef6fb;
  --text-color: #1a1a1a;
  --subtext-color: #555;
  --white: #fff;
  --max-content-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
}

/* ======= GLOBAL RESET & BASE STYLES ======= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--white);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
}

/* Styling umum untuk semua link */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

/* Accessibility focus styles */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

/* ======= HERO SECTION ======= */
.hero-section {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(rgba(26, 95, 122, 0.85), rgba(0, 0, 0, 0.8)),
              url('/images/home/cover.png') no-repeat center/cover;
  background-attachment: fixed;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

#hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 0.8s ease-out;
  line-height: 1.1;
}

.typing-text {
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  color: var(--white);
  min-height: 2.5rem;
  margin-bottom: 1.2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.hero-subtext {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 90%;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ======= MAIN CONTENT SECTION ======= */
.main-content {
  position: relative;
  z-index: 2;
  background-color: var(--white);
}

/* ======= CONTACT SECTION ======= */
.contact-section {
  padding: 4rem 1.5rem;
  background-color: var(--light-bg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

/* Section Headings */
.contact-title {
  grid-column: 1 / -1;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 1.2rem;
  font-weight: 800;
}

.contact-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.contact-subtitle {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  color: var(--subtext-color);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ======= CONTACT FORM ======= */
.contact-form {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.contact-form:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
  font-size: 1rem;
}

.form-group label i {
  margin-right: 0.6rem;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: var(--transition);
  background-color: var(--light-bg);
  color: var(--text-color);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}

.form-control::placeholder {
  color: var(--subtext-color);
  opacity: 0.7;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Verification Code */
.verification-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.verification-input {
  flex: 1;
  min-width: 200px;
}

.code-display {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  user-select: none;
  min-width: 140px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(26, 95, 122, 0.25);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Submit Button */
.btn-submit {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.btn-submit:hover,
.btn-submit:focus {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26, 95, 122, 0.3);
}

.btn-submit:active {
  transform: translateY(1px);
}

/* Loading animation */
.btn-submit.loading::after {
  content: "";
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

/* ======= CONTACT INFO ======= */
.contact-info {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  height: 100%;
}

.info-section {
  margin-bottom: 2.5rem;
}

.map-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.map-container {
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 2rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--hover-bg);
  font-weight: 700;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-item-content {
  flex: 1;
}

.contact-item-content p,
.contact-item-content a {
  font-size: 1rem;
  color: var(--text-color);
  transition: var(--transition);
}

.contact-item-content a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--hover-bg);
  color: var(--primary-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* ======= RESPONSIVE ADJUSTMENTS ======= */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 6rem 1.5rem;
  }
  
  .hero-subtext {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 1.2rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem 1.5rem;
  }
  
  .verification-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .code-display {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 5rem 1rem;
    background-attachment: scroll;
  }
  
  #hero-title {
    margin-bottom: 1rem;
  }
  
  .contact-section {
    padding: 2.5rem 1rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.8rem 1.2rem;
  }
  
  .map-container {
    height: 220px;
  }
  
  .btn-submit {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

/* ======= ANIMATIONS ======= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ======= UTILITY CLASSES ======= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}