:root {
  --primary-color: #1f93ff;
  --secondary-color: #00d4ff;
  --accent-color: #667eea;
  --success-color: #2ecc71;
  --error-color: #e74c3c;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --border-color: #e0e0e0;
  --text-color: #333;
  --text-light: #666;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 40px 20px;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  color: white;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-header .subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Contact Wrapper */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Contact Info Section */
.contact-info {
  animation: slideUp 0.6s ease-out 0.1s backwards;
}

.contact-info h2 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Info Items */
.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.15);
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 5px 15px rgba(31, 147, 255, 0.3);
}

.info-content h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.info-content a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.info-content a:hover {
  color: white;
}

.info-time {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Social Links */
.social-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links h3 {
  color: white;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(31, 147, 255, 0.4);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Form Section */
.contact-form-section {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  animation: slideUp 0.6s ease-out 0.2s backwards;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Form Group */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.form-label i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #fafbff;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(31, 147, 255, 0.1);
  background: white;
}

.form-control::placeholder {
  color: #999;
  font-weight: 400;
}

.form-control.is-invalid {
  border-color: var(--error-color);
  background: #fff5f5;
}

.form-control.is-valid {
  border-color: var(--success-color);
  background: #f5fff5;
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-textarea:focus {
  min-height: 150px;
}

/* Message Counter */
.message-counter {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: right;
}

.message-counter.limit-reached {
  color: var(--error-color);
  font-weight: 600;
}

/* Form Feedback */
.form-feedback {
  font-size: 0.85rem;
  color: var(--error-color);
  margin-top: 0.5rem;
  display: none;
}

.form-control.is-invalid ~ .form-feedback {
  display: block;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary-color);
  transition: transform 0.2s;
}

.checkbox-group input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.checkbox-group label {
  font-size: 0.95rem;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group i {
  color: var(--primary-color);
}

/* Submit Button */
.btn-primary {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(31, 147, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary i {
  font-size: 1.1rem;
}

/* Alert Messages */
.alert {
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: slideDown 0.3s ease-out;
}

.alert i {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert strong {
  display: block;
  margin-bottom: 0.25rem;
}

.alert .btn-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 1.5rem;
  margin-left: auto;
  padding: 0;
  transition: transform 0.2s;
}

.alert .btn-close:hover {
  transform: scale(1.1);
}

.d-none {
  display: none;
}

/* Map Section */
.map-section {
  margin-top: 4rem;
  animation: slideUp 0.6s ease-out 0.3s backwards;
}

.map-section h2 {
  text-align: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-header .subtitle {
    font-size: 1rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-section {
    padding: 2rem;
  }

  .info-item {
    padding: 1.25rem;
  }

  .social-icons {
    flex-wrap: wrap;
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .contact-header h1 {
    font-size: 1.5rem;
  }

  .contact-header .subtitle {
    font-size: 0.95rem;
  }

  .contact-form-section {
    padding: 1.5rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-control {
    font-size: 16px;
    padding: 0.85rem 1rem;
  }

  .btn-primary {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .map-container iframe {
    height: 250px;
  }

  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }
}