/* Custom Styles for Active Ukrainians Website */

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 15px;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.3s;
  border-radius: 4px;
}

.lang-btn:hover {
  transform: scale(1.1);
  border-color: #007bff;
}

.lang-btn.active {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}

/* Mobile Language Switcher */
@media (max-width: 991px) {
  .language-switcher {
    margin: 10px 0;
    justify-content: center;
  }
}

/* Hero Section Enhancements */
.hero-description {
  font-size: 18px;
  margin: 20px auto;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 12px 35px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s;
  display: inline-block;
}

.btn-hero.btn-primary {
  background: #ffd700;
  color: #333;
  border: 2px solid #ffd700;
}

.btn-hero.btn-primary:hover {
  background: #ffed4e;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-hero.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-hero.btn-outline:hover {
  background: #fff;
  color: #333;
  transform: translateY(-3px);
}

/* Telegram Section */
.telegram {
  background: #f8f9fa;
  padding: 60px 0;
}

.telegram-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  height: 100%;
}

.telegram-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.telegram-icon {
  font-size: 48px;
  color: #0088cc;
  margin-bottom: 20px;
}

.telegram-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.telegram-card p {
  color: #666;
  margin-bottom: 25px;
}

.btn-telegram {
  display: inline-block;
  padding: 10px 25px;
  background: #0088cc;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-telegram:hover {
  background: #006699;
  color: #fff;
  transform: scale(1.05);
}

/* Projects Grid */
.projects .icon-box {
  transition: all 0.3s;
}

.projects .icon-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.projects .icon {
  font-size: 48px;
  margin-bottom: 15px;
}

/* Why Join Section */
.why-join {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 80px 0;
}

.why-join .section-title h2,
.why-join .section-title p {
  color: #fff;
}

.why-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px);
}

.why-card i {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ffd700;
}

.why-card h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #fff;
}

.why-card p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Call to Action Enhancements */
.call-to-action {
  background-image: linear-gradient(rgba(1, 41, 42, 0.6), rgba(7, 56, 57, 0.6)), url("../img/cta-background.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: 80px 0;
}

.call-to-action h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
}

.call-to-action p {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* Partners Section */
.partners-needs {
  background: #f8f9fa;
}

.need-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  margin-bottom: 20px;
}

.need-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.need-card i {
  font-size: 36px;
  color: #007bff;
  margin-bottom: 15px;
}

/* Initiative Section */
.initiative {
  background: linear-gradient(to right, #11998e, #38ef7d);
  color: #fff;
}

.initiative .section-title h2,
.initiative .section-title p {
  color: #fff;
}

.initiative-steps {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  margin-top: 30px;
}

.initiative-steps h4 {
  color: #fff;
  margin-bottom: 20px;
}

.initiative-steps ul {
  list-style: none;
  padding: 0;
}

.initiative-steps li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
}

.initiative-steps li:last-child {
  border-bottom: none;
}

.initiative-steps li:before {
  content: "→ ";
  font-weight: bold;
  margin-right: 10px;
}

/* Membership Modal */
#membership-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalFade 0.3s;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #666;
}

.close-modal:hover {
  color: #000;
}

.modal-body {
  padding: 30px;
}

.modal-body .form-group {
  margin-bottom: 20px;
}

.modal-body label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="tel"],
.modal-body textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.modal-body input:focus,
.modal-body textarea:focus {
  outline: none;
  border-color: #007bff;
}

.gdpr-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.gdpr-consent input[type="checkbox"] {
  margin-top: 4px;
}

.gdpr-consent label {
  font-weight: normal;
  font-size: 14px;
}

.gdpr-text {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px 30px;
  border-top: 1px solid #eee;
}

.modal-footer button {
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-footer .submit-btn {
  background: #007bff;
  color: #fff;
}

.modal-footer .submit-btn:hover {
  background: #0056b3;
}

.modal-footer .cancel-btn {
  background: #6c757d;
  color: #fff;
}

.modal-footer .cancel-btn:hover {
  background: #5a6268;
}

.success-message,
.error-message {
  display: none;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-hero {
    width: 100%;
    text-align: center;
  }

  .modal-content {
    width: 95%;
  }

  .modal-body {
    padding: 20px;
  }
}

/* --- New Styles for Updates --- */

/* Verification UI */
.input-group-verify {
  display: flex;
  gap: 10px;
}

.input-group-verify input {
  flex: 1;
}

.code-group {
  display: none;
  /* Hidden by default */
  margin-top: 10px;
  gap: 10px;
}

.verification-message {
  font-size: 0.9rem;
  margin-top: 5px;
  min-height: 20px;
}

.is-valid {
  border-color: #28a745 !important;
}

.is-invalid {
  border-color: #dc3545 !important;
}

/* Events Calendar */
.events-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  transition: all 0.2s;
}

.calendar-day:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Partners Carousel */
.partners-slider {
  padding: 20px 0;
}

.partner-slide {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.partner-slide h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.partner-slide p {
  font-size: 0.95rem;
  color: #666;
  flex-grow: 1;
}

.partner-contacts {
  margin-top: 15px;
  font-size: 0.85rem;
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 15px;
  color: #444;
}

.partner-contacts p {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.partner-contacts i {
  color: #fce205;
  /* Ukraine Yellow */
  font-size: 1rem;
  margin-top: 2px;
}

.partner-contacts a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

.partner-contacts a:hover {
  color: #0057b7;
  /* Ukraine Blue */
  text-decoration: underline;
}