/* contacts.css */

/* Base styles and CSS variables */
:root {
    --primary-color: #301C50;
    --primary-hover: #9747FF;
    --text-color: #4C4C4C;
    --padding-standard: 30px;
    --max-width: 1920px;
    --border-color: #E0E0E0;
    
    /* Notification colors */
    --success-color: #4CAF50;
    --info-color: #2196F3;
    --warning-color: #FF9800;
    --error-color: #F44336;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes lineGrow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}



/* ===== CONTACT INFO SECTION ===== */
.contact-info {
  padding: 60px 0;
}

.section-title {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  padding: 30px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}

.contact-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.contact-icon {
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-icon img {
  width: 24px;
  height: 24px;
}

.contact-details h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-details p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
}

.contact-details p + p {
  margin-top: 5px;
}

/* ===== MAP & FORM SECTION ===== */
.map-form-section {
  width: 100%;
  background-color: #fff;
}

.map-form-container {
  display: flex;
  flex-wrap: wrap;
}

.map-column {
  flex: 1;
  min-width: 300px;
  height: 550px;
  margin-top: 30px;
  
}

.form-column {
  flex: 1;
  min-width: 300px;
  background-color: #fff;
}

.contact-map {
  margin-top: 40px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.contact-form-container {
  height: 100%;
  padding: 40px 0 40px 40px;
}

.form-title {
  font-size: 36px;
  color: #000;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-description {
  margin-bottom: 30px;
  font-size: 16px;
  color: var(--text-color);
}

/* Правая колонка - форма обратной связи */
.contact-form-container {
  flex: 1;
  background-color: #fff;
  padding: 0 0 20px 30px;
}

.form-subtitle {
  margin-bottom: 30px;
  color: #323030;
  font-size: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-size: 16px;
  color: #323030;
  font-weight: 500;
}

.form-control {
  height: 50px;
  padding: 0 15px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-size: 16px;
  color: #323030;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

textarea.form-control {
  padding: 15px;
  height: auto;
  resize: none;
}

.form-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
}

.form-checkbox label {
  margin-bottom: 0;
  font-size: 14px;
  color: #323030;
  font-weight: 400;
}

.btn-submit {
  width: 100%;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
}


/* ===== RESPONSIVE STYLES ===== */
/* Tablet (768px - 1439px) */
@media (min-width: 768px) and (max-width: 1439px) {
  .section-title {
    font-size: 32px;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .map-form-container {
    flex-direction: column;
    padding-bottom: 20px;
  }
  
  .map-column {
    height: 400px;
    width: 100%;
    padding-bottom: 20px;
  }
  
  .form-column {
    width: 100%;
    padding: 30px 0;
    padding-bottom: 20px;
  }
  
  .contact-form-container {
    padding: 0;
  }
  
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
  .section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 25px;
  }
  
  .form-title {
    font-size: clamp(22px, 5vw, 28px);
  }
  
  .contact-info {
    padding: 30px 0;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    padding: 20px;
  }
  
  .contact-details h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .contact-details p {
    font-size: 14px;
  }
  
  .map-column {
    height: 250px;
    margin-bottom: 20px;
  }
  
  .form-column {
    padding: 20px 0;
  }
  
  .contact-form-container {
    padding: 20px 15px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-control {
    font-size: 16px;
    padding: 12px 16px;
  }
  
  textarea.form-control {
    min-height: 120px;
  }
  
  .btn-submit {
    height: 48px;
    font-size: 16px;
  }
  
  #notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }
  
  .notification {
    margin-bottom: 8px;
    padding: 12px;
    font-size: 14px;
  }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .section-title {
    font-size: clamp(20px, 6vw, 26px);
  }
  
  .form-title {
    font-size: clamp(18px, 5vw, 24px);
  }
  
  .contact-details h3 {
    font-size: 15px;
  }
  
  .contact-details p {
    font-size: 13px;
  }
  
  .map-column {
    height: 200px;
  }
  
  .contact-form-container {
    padding: 15px 10px;
  }
  
  .form-group {
    margin-bottom: 14px;
  }
  
  .form-control {
    padding: 10px 12px;
  }
  
  textarea.form-control {
    min-height: 100px;
    padding-top: 10px;
  }
  
  .btn-submit {
    height: 44px;
    font-size: 15px;
  }
}
