/*
 Theme Name:   Astra Child
 Description:  Astra Child Theme for ROIM.IO
 Author:       Your Name
 Template:     astra
 Version:      1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600&display=swap');

/* --- העיצוב הירוק שלך (ROIM.IO) --- */

* { box-sizing: border-box; }

.contact-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.contact-overlay.active { display: flex; }

.contact-popup {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: clamp(2rem, 4vw, 3rem);
  width: 90%; max-width: 500px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  font-family: 'Fredoka', sans-serif;
  direction: rtl;
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 15px; left: 15px;
  background: none; border: none;
  font-size: 2rem; cursor: pointer;
  color: #666; transition: color 0.3s ease;
  width: 35px; height: 35px;
  display: flex; align-items: center; justify-content: center;
}

.close-btn:hover { color: #333; }

.contact-popup h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: #000; margin-bottom: 1.5rem;
  text-align: center; font-weight: 300; line-height: 1.4;
}

.form-group { margin-bottom: 1.5rem; }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%; padding: clamp(0.8rem, 2vw, 1rem);
  border: 2px solid #e0e0e0; border-radius: 30px;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(0.9rem, 1vw, 1rem);
  transition: all 0.3s ease;
  direction: rtl;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group input:focus {
  outline: none; border-color: #61CE70;
  box-shadow: 0 0 0 3px rgba(97, 206, 112, 0.2);
}

.checkbox-group { margin-bottom: 1.5rem; }

.checkbox-label {
  display: flex; align-items: flex-start;
  cursor: pointer; gap: 10px;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px;
  cursor: pointer; flex-shrink: 0; accent-color: #61CE70;
}

.checkbox-text {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  color: #555; line-height: 1.5; text-align: right;
}

.submit-btn {
  width: 100%; padding: clamp(0.9rem, 2vw, 1.1rem);
  background: linear-gradient(272deg, #61CE70 0%, #00D9A6 100%);
  color: white; border: none; border-radius: 30px;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1rem, 1vw, 1.2rem);
  font-weight: 500; cursor: pointer;
  transition: all 0.3s ease; margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(97, 206, 112, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(97, 206, 112, 0.4);
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.success-message {
  text-align: center; padding: 1.5rem;
  background: linear-gradient(272deg, rgba(97, 206, 112, 0.5) 0%, rgba(0, 217, 166, 0.5) 100%);
  border: 1px solid #61CE70; border-radius: 30px;
  margin-top: 1rem;
}

.success-message p {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1rem, 1vw, 1.2rem);
  color: #155724; margin: 0; font-weight: 500;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 768px) {
  .contact-popup { width: 90%; padding: 1.5rem; }
  .contact-popup h2 { font-size: 1.3rem; }
  .checkbox-text { font-size: 0.85rem; }
}