/* Contact page */
.contact-hero { position: relative; width: 100%; overflow: hidden; }
.contact-hero img { width: 100%; height: 60vh; max-height: 620px; object-fit: cover; display: block; }

.contact-section { padding: 80px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 2.4rem; color: #0f2740; font-weight: 800; margin: 8px 0 12px; }
.contact-info p { color: #5b6b80; }
.info-list { margin-top: 16px; display: grid; gap: 16px; }
.info-item { display: grid; grid-template-columns: 40px 1fr; align-items: start; gap: 12px; }
.info-item .icon { font-size: 24px; }
.info-item .label { font-size: 14px; opacity: .9; }
.info-item .value { display:block; color:#0f2740; font-weight: 700; text-decoration:none; }

.contact-form-card { background: #fff; border: 1px solid #e8eef5; border-radius: 12px; box-shadow: 0 12px 28px rgba(13,38,76,.08); padding: 22px; }
.contact-form-card .row { display: grid; gap: 12px; margin-bottom: 12px; }
.contact-form-card .row.two { grid-template-columns: 1fr 1fr; }
.contact-form-card input, .contact-form-card textarea { width: 100%; padding: 14px 16px; border-radius: 22px; border: 1px solid #e8eef5; background: #f0f5f9; font: inherit; color: #0f2740; }
.contact-form-card textarea { border-radius: 16px; }
.contact-form-card .form-cta { margin-top: 8px; }

.map-section { padding: 40px 0 80px; background: #fff; }
.map-embed iframe { width: 100%; height: 420px; border-radius: 12px; border: 1px solid #e8eef5; box-shadow: 0 12px 28px rgba(13,38,76,.08); }

/* Form enhancements */
.contact-form-card input:focus, 
.contact-form-card textarea:focus {
  outline: none;
  border-color: #0f2740;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 39, 64, 0.1);
}

.contact-form-card input:valid, 
.contact-form-card textarea:valid {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.contact-form-card button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.contact-form-card button:disabled:hover {
  background: #0f2740;
  transform: none !important;
}

/* Loading spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.contact-form-card button span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.contact-form-card button:disabled span {
  animation: spin 1s linear infinite;
}

/* Notification animations */
.notification {
  animation: slideInRight 0.3s ease;
}

.notification.notification-exit {
  animation: slideOutRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  margin: -4px;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.notification-close:hover {
  opacity: 1;
}

/* Form validation states */
.contact-form-card input.error, 
.contact-form-card textarea.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.contact-form-card .field-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* Success state */
.contact-form-card.success {
  border-color: #10b981;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.15);
}

/* Loading overlay for form */
.contact-form-card.loading {
  position: relative;
  pointer-events: none;
}

.contact-form-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  z-index: 10;
}

@media (max-width: 992px) { 
  .contact-grid { grid-template-columns: 1fr; }
  
  .notification {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

@media (max-width: 768px) { 
  .contact-hero img { height: 40vh; } 
  .contact-form-card .row.two { grid-template-columns: 1fr; }
  
  .notification {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  
  .contact-info h2 {
    font-size: 2rem;
  }
} 