/* חיבור לפונט Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto Sans Hebrew:wght@400;500&display=swap');

/* החלת הפונט על כל הדף */
body {
  font-family: 'Noto Sans Hebrew', sans-serif !important;
}
/* מיכל הטופס הראשי */
.scratch-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.scratch-form-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 500;
    direction: rtl;
	background: linear-gradient(90deg, #FFD599 0%, #FFF0BF 50%, #F2B06D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.scratch-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* שורות הטופס - סידור ב-Grid */
.scratch-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    direction: rtl;
}

/* עיצוב מיכל האינפוט */
.input-container {
    position: relative;
    width: 100%;
}

/* הוספת מעטפת לאזור האימות */
.otp-verification {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* עיצוב הכותרת */
.otp-verification h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* עיצוב הטופס */
.otp-verification form {
  width: 90%;
  max-width: 400px;
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* עיצוב שדה הקלט */
.otp-verification input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
}

/* עיצוב שורת הכפתורים */
.otp-verification form > div {
  display: flex;
  justify-content: space-between;
}

/* עיצוב כפתור האימות */
.otp-verification button[type="submit"] {
  background-color: #008F91;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

/* עיצוב כפתור הביטול */
.otp-verification button[type="button"] {
  background-color: #e2e8f0;
  color: #4a5568;
  padding: 0.5rem 1rem;  
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

/* עיצוב הודעות שגיאה */
.otp-verification p {
  color: #f56565;
  margin-top: 1rem;
  text-align: center;
}

/* עיצוב שדות הקלט */
.scratch-form input[type="text"],
.scratch-form input[type="tel"],
.scratch-form input[type="email"] {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
    text-align: right;
    padding-left: 40px; /* מקום לאייקון */
}

/* עיצוב האייקון - שינוי מיקום לצד שמאל */
.input-container:after {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    color: #9ca3af;
    font-size: 20px;
}

/* עיצוב הכפתור */
.scratch-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #008F91 100%, #009FA1 0%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: background-color 0.3s;
	box-shadow: 
    -3px 3px 8px 0px rgba(0, 60, 61, 0.9),
    3px -3px 26px 0px rgba(0, 242, 245, 0.4),
    3px 3px 6px 0px rgba(0, 60, 61, 0.2),
    -3px -3px 6px 0px rgba(0, 60, 61, 0.2),
    -1px 1px 2px 0px rgba(0, 242, 245, 0.3) inset;

}

.scratch-form h2 {
    text-align: -webkit-center;
    color: white;
}
.scratch-form button[type="button"] { 
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: #008F91;
    border: 1px solid #008F91;
    padding: .5rem 1rem;
    font-size: 1rem;
    border-radius: 3px;
    transition: all .3s;
    float: inline-start;
    width: 46%;
    margin: 2%;
    font-weight: 900;
}
.scratch-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #008F91 100%, #009FA1 0%);
}

/* מיכל הצ'קבוקס */
.checkbox-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* עיצוב הצ'קבוקס */
.scratch-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
}

/* טקסט הצ'קבוקס */
.checkbox-label {
    font-size: 14px;
    color: white !important;
	text-decoration:  1px underline;
}

/* מיקוד על שדות הקלט */
.scratch-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* placeholder */
.scratch-form input::placeholder {
    color: #9ca3af;
}

/* התאמה למסכים קטנים */
@media (max-width: 500px) {
    .scratch-form-row {
        grid-template-columns: 1fr;
    }
    
    .scratch-form-container {
        padding: 16px;
    }
}

.error-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.error-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.error-popup-close {
    position: absolute;
    left: 16px;
    top: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.error-popup-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.error-popup-message {
    color: #666;
    margin: 0;
}

/* אנימציית כניסה לפופאפ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.terms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.terms-popup-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    direction: rtl;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-popup-close {
    position: absolute;
    left: 16px;
    top: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 1;
}

.terms-popup-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    color: #008F91;
    text-align: center;
}

.terms-popup-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.terms-popup-text h3 {
    color: #008F91;
    font-size: 20px;
    margin: 24px 0 16px;
}

.terms-popup-text p {
    margin: 8px 0;
}

/* Animation for popup */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-popup-content {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar styling */
.terms-popup-content::-webkit-scrollbar {
    width: 8px;
}

.terms-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-popup-content::-webkit-scrollbar-thumb {
    background: #008F91;
    border-radius: 4px;
}

.terms-popup-content::-webkit-scrollbar-thumb:hover {
    background: #007a7c;
}

