/* ======================
   KONTAKT PAGE STYLES
   Спеціальні стилі для контактної сторінки
====================== */

/* Contact Page Base Styles */
body {
  padding-top: 100px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* ======================
   CONTACT INFO SECTION
====================== */

.contact-info {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-info h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ВИПРАВЛЕНО: Contact Item Icons - ПРИМУСОВЕ ЗМЕНШЕННЯ */
.contact-item svg.icon {
  width: 1rem !important; /* ЗМЕНШЕНО ДО 1rem */
  height: 1rem !important;
  color: var(--light);
  margin-right: 1.5rem;
  padding: 18px !important; /* ЗБІЛЬШЕНИЙ PADDING ДЛЯ КОНТЕЙНЕРА */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
  box-sizing: content-box;
}

.contact-item:hover svg.icon {
  background: var(--primary);
  transform: translateY(-3px) scale(1.1);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.contact-item-content h3 {
  color: var(--light);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-item-content p {
  color: var(--gray);
  margin: 0;
}

.contact-item-content a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item-content a:hover {
  color: var(--primary);
}

/* ======================
   SOCIAL MEDIA SECTION
====================== */

.social-section {
  text-align: center;
  margin: 3rem 0;
}

.social-section h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* ВИПРАВЛЕНО: Social Links - ЗБІЛЬШЕНІ КНОПКИ, ЗМЕНШЕНІ ІКОНКИ */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px !important; /* ЗБІЛЬШЕНО КНОПКУ з 90px */
  height: 100px !important; /* ЗБІЛЬШЕНО КНОПКУ з 90px */
  background: var(--card-bg);
  border-radius: 20px;
  color: var(--light);
  text-decoration: none;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.social-link svg.icon {
  width: 1.2rem !important; /* ЗМЕНШЕНО ІКОНКУ з 1.8rem */
  height: 1.2rem !important;
}

.social-link:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(255, 152, 0, 0.3);
}

.social-link.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-link.linkedin:hover {
  background: #0077b5;
  color: white;
}

/* ======================
   CONTACT FORM
====================== */

.contact-form {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.form-group {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--light);
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--light);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.6);
}

.submit-btn .icon {
  width: 1em;
  height: 1em;
}

/* Form Validation Styles */
.form-error {
  color: #f44336;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #f44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* ======================
   MOBILE CONTACT ICONS
====================== */

.mobile-contact-icons {
  display: none;
}

.mobile-social-section {
  display: none;
}

/* ======================
   RESPONSIVE DESIGN
====================== */

/* Mobile (до 767px) */
@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  /* Hide desktop contact info on mobile */
  .contact-info {
    display: none;
  }

  /* Hide social section on mobile */
  .social-section {
    display: none;
  }

  /* ВИПРАВЛЕНО: Show mobile contact icons з ЗБІЛЬШЕНИМ ВІДСТУПОМ */
  .mobile-contact-icons {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
  }

  .mobile-contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.4s ease;
    padding: 0.5rem;
    border: 2px solid transparent;
  }

  .mobile-contact-icon:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.3);
    background: var(--primary);
  }

  /* ВИПРАВЛЕНО: Збільшений відступ між іконкою і текстом */
  .mobile-contact-icon .icon {
    width: 1.2em;
    height: 1.2em;
    margin-bottom: 0.7rem !important; /* ЗБІЛЬШЕНО з 0.5rem */
    color: var(--light);
  }

  .mobile-contact-icon span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1;
    color: var(--light);
  }

  .mobile-contact-icon:hover .icon,
  .mobile-contact-icon:hover span {
    color: white;
  }

  /* Contact form takes full width */
  .contact-form {
    padding: 2rem;
    margin: 0;
    grid-column: 1 / -1;
  }

  /* ВИПРАВЛЕНО: Show mobile social section з ЗБІЛЬШЕНИМИ КНОПКАМИ */
  .mobile-social-section {
    display: block !important;
  }

  .mobile-social-section .social-link {
    width: 80px !important; /* ЗБІЛЬШЕНО з 70px */
    height: 80px !important; /* ЗБІЛЬШЕНО з 70px */
  }

  .mobile-social-section .social-link svg.icon {
    width: 1.4rem !important; /* ЗБІЛЬШЕНО з 1.6rem для мобільних */
    height: 1.4rem !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .social-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .container {
    padding: 1rem;
  }
}

/* Small Mobile (до 480px) */
@media (max-width: 480px) {
  .mobile-contact-icons {
    gap: 0.3rem;
    padding: 1rem;
  }

  .mobile-contact-icon {
    height: 70px;
    min-width: 60px;
  }

  /* ВИПРАВЛЕНО: Збільшений відступ для малих екранів */
  .mobile-contact-icon .icon {
    width: 1em;
    height: 1em;
    margin-bottom: 0.6rem !important; /* ЗБІЛЬШЕНО з 0.4rem */
  }

  .mobile-contact-icon span {
    font-size: 0.55rem;
    line-height: 1.1;
  }

  .contact-form {
    padding: 1.5rem;
  }

  /* Mobile social для малих екранів */
  .mobile-social-section .social-link {
    width: 70px !important;
    height: 70px !important;
  }

  .mobile-social-section .social-link svg.icon {
    width: 1.2rem !important;
    height: 1.2rem !important;
  }
}

/* ======================
   FOOTER OVERRIDES
====================== */

/* footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 2rem;
  margin-top: 4rem;
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

footer .footer-column h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer .footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

footer .footer-column p,
footer .footer-column a {
  color: #bdbdbd;
  margin-bottom: 0.8rem;
  display: block;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.6;
}

footer .footer-column a:hover {
  color: var(--primary);
}

footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

footer .social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

footer .social-links .icon {
  width: 1.1em;
  height: 1.1em;
}

footer .copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9e9e9e;
  font-size: 0.9rem;
  text-align: center;
} */

/* Footer Responsive */
/* @media (max-width: 479px) {
  footer {
    text-align: center;
  }
  
  footer .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  footer .footer-column h3 {
    text-align: center;
  }
  
  footer .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  footer .footer-column p,
  footer .footer-column a {
    text-align: center;
  }
  
  footer .social-links {
    justify-content: center;
  }
  
  footer .footer-columns-row {
    display: contents;
  }
} */

/* @media (min-width: 480px) and (max-width: 767px) {
  footer {
    text-align: center;
  }
  
  footer .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  footer .footer-column:first-child {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  footer .footer-column:first-child h3 {
    text-align: center;
  }
  
  footer .footer-column:first-child h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  footer .footer-column:first-child p {
    text-align: center;
  }
  
  footer .footer-columns-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  footer .footer-columns-row .footer-column h3 {
    text-align: center;
  }
  
  footer .footer-columns-row .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  footer .footer-columns-row .footer-column a {
    text-align: center;
  }
  
  footer .social-links {
    justify-content: center;
  }
} */

/* @media (min-width: 768px) {
  footer .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    text-align: left;
  }
  
  footer .footer-column h3 {
    text-align: left;
  }
  
  footer .footer-column h3::after {
    left: 0;
    transform: none;
  }
  
  footer .footer-column p,
  footer .footer-column a {
    text-align: left;
  }
  
  footer .footer-columns-row {
    display: contents;
  }
  
  footer .social-links {
    justify-content: flex-start;
  }
} */
 /* ======================
   ВИПРАВЛЕНІ СТИЛІ ДЛЯ SOCIAL КНОПОК КОНТАКТНОЇ СТОРІНКИ
   Зменшуємо кнопки та збільшуємо іконки для кращих пропорцій
====================== */

/* ======================
   CONTACT ITEM ICONS - ЗМЕНШЕНІ КНОПКИ, ЗБІЛЬШЕНІ ІКОНКИ
====================== */

/* ВИПРАВЛЕНО: Contact Item Icons - ОПТИМАЛЬНІ ПРОПОРЦІЇ */
@media (min-width: 768px) {
  .contact-item svg.icon {
    width: 1.2rem !important; /* ВСТАНОВЛЕНО 1.2rem */
    height: 1.2rem !important;
    color: var(--light);
    margin-right: 1.5rem;
    padding: 9px !important; /* ВСТАНОВЛЕНО 9px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    box-sizing: content-box;
  }

  .contact-item:hover svg.icon {
    background: var(--primary);
    transform: translateY(-3px) scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
  }
}

/* Великі екрани (1200px+) */
@media (min-width: 1200px) {
  .contact-item svg.icon {
    width: 1.2rem !important; /* ВСТАНОВЛЕНО 1.2rem */
    height: 1.2rem !important;
    padding: 9px !important; /* ВСТАНОВЛЕНО 9px */
  }
}

/* Планшети (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .contact-item svg.icon {
    width: 1.2rem !important; /* ВСТАНОВЛЕНО 1.2rem */
    height: 1.2rem !important;
    padding: 9px !important; /* ВСТАНОВЛЕНО 9px */
  }
}

/* ======================
   DESKTOP SOCIAL LINKS - КРУГЛІ ТА ТРІШКИ БІЛЬШІ КНОПКИ
====================== */
.contact-info .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px !important; /* ЗБІЛЬШЕНО до 80px */
  height: 80px !important; /* ЗБІЛЬШЕНО до 80px */
  background: var(--card-bg);
  border-radius: 50% !important; /* ЗРОБЛЕНО КРУГЛИМИ */
  color: var(--light);
  text-decoration: none;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.contact-info .social-link svg.icon {
  width: 2.2rem !important; /* ЗБІЛЬШЕНО пропорційно з 1.8rem */
  height: 2.2rem !important;
  transition: all 0.3s ease;
}

.contact-info .social-link:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(255, 152, 0, 0.3);
}

/* HOVER EFFECTS ДЛЯ КОЖНОЇ СОЦМЕРЕЖІ */
.contact-info .social-link.facebook:hover {
  background: #1877f2;
  color: white;
}

.contact-info .social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.contact-info .social-link.linkedin:hover {
  background: #0077b5;
  color: white;
}

/* ======================
   MOBILE SOCIAL SECTION - ТАКОЖ ЗМЕНШУЄМО
====================== */

.mobile-social-section .social-link {
  width: 75px !important; /* ЗБІЛЬШЕНО до 75px */
  height: 75px !important; /* ЗБІЛЬШЕНО до 75px */
  border-radius: 50% !important; /* ЗРОБЛЕНО КРУГЛИМИ */
}

.mobile-social-section .social-link svg.icon {
  width: 2.0rem !important; /* ЗБІЛЬШЕНО пропорційно з 1.7rem */
  height: 2.0rem !important;
}

/* Для дуже малих екранів (до 480px) */
@media (max-width: 480px) {
  .mobile-social-section .social-link {
    width: 70px !important; /* ЗБІЛЬШЕНО до 70px */
    height: 70px !important; /* ЗБІЛЬШЕНО до 70px */
    border-radius: 50% !important; /* КРУГЛІ */
  }

  .mobile-social-section .social-link svg.icon {
    width: 1.9rem !important; /* ЗБІЛЬШЕНО пропорційно з 1.6rem */
    height: 1.9rem !important;
  }
}

/* ======================
   ДОДАТКОВІ ПОЛІПШЕННЯ ДЛЯ КРАЩОГО ВИГЛЯДУ
====================== */

/* Покращена анімація hover */
.contact-info .social-link,
.mobile-social-section .social-link {
  position: relative;
  overflow: hidden;
}

/* Ripple effect при hover */
.contact-info .social-link::before,
.mobile-social-section .social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: 0;
}

.contact-info .social-link:hover::before,
.mobile-social-section .social-link:hover::before {
  width: 100px;
  height: 100px;
}

/* Забезпечуємо що іконка залишається поверх ripple */
.contact-info .social-link svg.icon,
.mobile-social-section .social-link svg.icon {
  position: relative;
  z-index: 1;
}

/* ======================
   НАЛАШТУВАННЯ ДЛЯ РІЗНИХ ЕКРАНІВ
====================== */

/* Великі екрани (1600px+) - трохи більші кнопки */
@media (min-width: 1600px) {
  .contact-info .social-link {
    width: 90px !important; /* ЗБІЛЬШЕНО до 90px */
    height: 90px !important; /* ЗБІЛЬШЕНО до 90px */
    border-radius: 50% !important; /* КРУГЛІ */
  }

  .contact-info .social-link svg.icon {
    width: 2.8rem !important; /* ВСТАНОВЛЕНО 2.8rem */
    height: 2.8rem !important;
  }
}

/* Планшети (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .contact-info .social-link {
    width: 78px !important; /* ЗБІЛЬШЕНО до 78px */
    height: 78px !important; /* ЗБІЛЬШЕНО до 78px */
    border-radius: 50% !important; /* КРУГЛІ */
  }

  .contact-info .social-link svg.icon {
    width: 2.1rem !important; /* ЗБІЛЬШЕНО пропорційно з 1.75rem */
    height: 2.1rem !important;
  }
}

/* ======================
   ВИПРАВЛЕННЯ ДЛЯ ВІДСТУПІВ МІЖ КНОПКАМИ
====================== */

/* Desktop social links контейнер */
.contact-info .social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Оптимальний gap для зменшених кнопок */
  margin-bottom: 2rem;
}

/* Mobile social links контейнер */
.mobile-social-section .social-links {
  justify-content: center;
  gap: 1.2rem; /* Трохи менший gap для мобільних */
}

@media (max-width: 480px) {
  .mobile-social-section .social-links {
    gap: 1rem; /* Ще менший gap для дуже малих екранів */
  }
}