/* ===================================
   CONTACT PAGE - INSTITUTIONAL REDESIGN
   Capital Innovation Fund
   Simplified Version - Form Focus
   =================================== */

/* ==================================
   RESET & BASE STYLES
   ================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
}

:root {
  /* Primary Palette */
  --navy-deep: #0a1628;
  --navy-primary: #0f2238;
  --navy-light: #1a3247;
  --teal-accent: #00a8cc;
  --teal-light: #00c3e0;
  --mint-accent: #00ffa3;
  
  /* Neutrals */
  --white: #ffffff;
  --grey-light: #f8f9fa;
  --grey-medium: #e1e8ed;
  --grey-dark: #8895a7;
  
  /* Functional */
  --success: #00d98e;
  --warning: #ffc107;
  --error: #ff4757;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00a8cc 0%, #00ffa3 100%);
  
  /* Spacing */
  --section-padding: 120px;
  --container-max: 1400px;
  
  /* Effects */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--white);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ==================================
   NAVIGATION
   ================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 42px;
  transition: var(--transition-smooth);
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 48px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

/* ==================================
   MAIN CONTACT SECTION
   ================================== */
.contact-main {
  min-height: 100vh;
  padding: 140px 60px 100px;
  background: var(--navy-primary);
  position: relative;
}

.contact-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 100px;
  align-items: start;
}

/* ==================================
   PREMIUM FORM SECTION
   ================================== */
.form-section {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.2s;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    transform: translateY(30px);
  }
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
}

/* Form Styling */
.premium-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-row {
  margin-bottom: 32px;
}

.form-row.double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition-smooth);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: transparent;
}

.form-group label {
  position: absolute;
  left: 0;
  top: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -8px;
  font-size: 12px;
  color: var(--teal-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus ~ .form-bar,
.form-group textarea:focus ~ .form-bar {
  width: 100%;
}

/* Textarea */
.textarea-group textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 20px;
}

/* Form Footer */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.lock-icon {
  color: var(--mint-accent);
}

/* Submit Button */
.submit-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(0, 168, 204, 0.25);
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 168, 204, 0.35);
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:active {
  transform: translateY(0);
}

.button-arrow {
  transition: transform 0.3s ease;
}

.submit-button:hover .button-arrow {
  transform: translateX(4px);
}

/* ==================================
   INFO SECTION - RIGHT COLUMN
   ================================== */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.4s;
  opacity: 0;
}

.info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 168, 204, 0.3);
  transform: translateY(-2px);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

/* Why Engage Card & Contact Details - Unified Styling */
.engagement-points,
.contact-details .contact-item {
  list-style: none;
}

.engagement-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.engagement-points li,
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
}

.engagement-points li:last-child {
  padding-bottom: 0;
}

.contact-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.contact-item:last-of-type {
  border-bottom: none;
}

.point-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 168, 204, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.engagement-points li:hover .point-icon,
.contact-item:hover .point-icon {
  transform: scale(1.1);
  background: rgba(0, 168, 204, 0.15);
}

.point-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.point-content {
  flex: 1;
}

.point-content strong,
.contact-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

/* Contact label styling for distinction */
.contact-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 600;
}

.point-content p,
.contact-value {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.contact-value {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.6;
}

/* Clickable contact items */
.contact-item {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.02);
  margin: 0 -16px;
  padding: 20px 16px;
  border-radius: 8px;
}

.office-hours {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hours-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ==================================
   FOOTER - SIMPLIFIED
   ================================== */
footer {
  background: var(--navy-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 60px 40px;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.footer-brand {
  flex: 1;
  max-width: 500px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 24px;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--teal-accent);
  color: var(--white);
  transform: translateY(-2px);
}

.social-icon:nth-child(1):hover {
  border-color: #0077b5;
  background: rgba(0, 119, 181, 0.1);
}

.social-icon:nth-child(2):hover {
  border-color: #1da1f2;
  background: rgba(29, 161, 242, 0.1);
}

.social-icon:nth-child(3):hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.1);
}

/* ==================================
   RESPONSIVE DESIGN
   ================================== */
@media (max-width: 1200px) {
  .contact-wrapper {
    gap: 60px;
  }
}

@media (max-width: 968px) {
  .nav-container {
    padding: 0 30px;
  }
  
  .nav-links {
    gap: 24px;
  }
  
  .contact-main {
    padding: 120px 40px 80px;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .premium-form {
    padding: 36px;
  }
  
  .form-row.double {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-simple {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 0 20px;
    height: 70px;
  }
  
  .logo img {
    height: 36px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 13px;
  }
  
  .contact-main {
    padding: 100px 25px 60px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .premium-form {
    padding: 28px;
  }
  
  .form-footer {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .submit-button {
    width: 100%;
    justify-content: center;
  }
  
  .info-card {
    padding: 24px;
  }
  
  footer {
    padding: 40px 25px 30px;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-social {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==================================
   ACCESSIBILITY
   ================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal-accent);
  outline-offset: 2px;
}