:root {
  --primary-blue: #2563eb;
  --dark-blue: #1e40af;
  --light-blue: #dbeafe;
  --accent-green: #10b981;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ========== MAP SECTION ========== */
.contact-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-lg);
}

.map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) contrast(110%) brightness(90%);
}

.map-overlay {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideIn 0.6s ease-out;
}

.map-overlay h3 {
  color: var(--dark-blue);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-overlay h3::before {
  content: "📍";
  font-size: 1.3rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
}

.contact-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-icon {
  background: var(--light-blue);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.contact-info h5 {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========== MAIN CONTENT ========== */
.contact-main {
  max-width: 1200px;
  margin: -80px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  margin-bottom: 40px;
}

/* ========== FORM STYLES ========== */
.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-form-container:hover {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 2rem;
  color: var(--dark-blue);
  margin-bottom: 8px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Form Inputs */
.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--light-bg);
  color: var(--text-dark);
}

.form-group label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
  background: var(--light-bg);
  padding: 0 8px;
}

.form-group textarea ~ label {
  top: 24px;
  transform: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: 0;
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  padding-top: 24px;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: white;
  border: none;
  padding: 18px 36px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.submit-btn::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: 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* ========== QR CARD ========== */
.qr-connect-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 40px;
  border-radius: 24px;
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.qr-connect-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: float 20s linear infinite;
}

.qr-header {
  margin-bottom: 24px;
  position: relative;
}

.qr-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: white;
  font-weight: 700;
}

.qr-header p {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.qr-image-container {
  background: white;
  padding: 20px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  transition: var(--transition);
}

.qr-image-container:hover {
  transform: scale(1.03);
}

.qr-image-container img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.qr-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.qr-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.9rem;
  text-align: left;
}

.qr-feature i {
  color: var(--accent-green);
  font-size: 1rem;
}

/* ========== SUCCESS MESSAGE ========== */
.alert-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.5s ease-out;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.alert-success::before {
  content: "✓";
  font-size: 1.2rem;
  font-weight: bold;
}

/* ========== CONTACT INFO SECTION ========== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.info-card h4 {
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.info-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ========== ANIMATIONS ========== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(10px, 10px) rotate(360deg);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .map-overlay {
    position: static;
    max-width: 100%;
    margin: 20px;
    animation: slideDown 0.6s ease-out;
  }
  
  .contact-main {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 300px;
  }
  
  .contact-form-container,
  .qr-connect-card {
    padding: 30px 24px;
  }
  
  .form-header h2 {
    font-size: 1.75rem;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .qr-image-container img {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .contact-main {
    padding: 0 15px;
  }
  
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  .map-overlay {
    padding: 20px;
    margin: 15px;
  }
}