/* ==========================================================================
   FONTS (Bar-Ilan Fedra Sans)
   ========================================================================== */
@font-face {
    font-family: 'FedraSansBI';
    src: url('../fonts/FedraSansBarilan-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'FedraSansBI';
    src: url('../fonts/FedraSansBarilan-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'FedraSansBI';
    src: url('../fonts/FedraSansBarilan-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'FedraSansBI';
    src: url('../fonts/FedraSansBar-ilan-Demi.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'FedraSansBI';
    src: url('../fonts/FedraSansBarilan-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-green: #006837;
    --input-bg: #f9fbfb;
    --border-color: #e0e0e0;
    --main-font: 'FedraSansBI', Tahoma, sans-serif;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: var(--main-font); /* Applied globally */
}

body { 
    background: #fff; 
    height: 100vh; 
    overflow: hidden; 
    direction: rtl; /* Right-to-Left support */
}

/* Ensure Vuetify components also use the font */
.v-application {
    font-family: var(--main-font) !important;
}

/* Hide Vue templates until they are compiled */
[v-cloak] { display: none; }

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */
.main-container {
    display: flex;
    height: calc(100vh - 60px); /* Total height minus footer */
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

/* Right Side: Forms */
.form-section { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 40px; 
}

#formTitle{
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
}
.form-subtitle{
    margin-bottom: 20px;
}

.form-container { 
    width: 100%; 
    max-width: 400px; 
    text-align: center; 
}

.terms-check{
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.main-logo { 
    width: 200px; 
    margin-bottom: 30px; 
}

/* Left Side: Carousel */
.hero-section { 
    flex: 1.5; 
    position: relative; 
    height: 100%; 
    overflow: hidden; 
}

/* ==========================================================================
   UPDATED STYLES WITH NEW FONT
   ========================================================================== */

.hero-content h2 { 
    font-family: var(--main-font);
    font-weight: 700; /* Using Bold variant */
    font-size: 32px; 
    margin-bottom: 15px; 
    line-height: 1.2; 
}

.tab-btn { 
    font-family: var(--main-font);
    font-weight: 500; /* Using Medium variant */
    flex: 1; 
    border: none; 
    background: none; 
    padding: 12px; 
    border-radius: 25px; 
    cursor: pointer; 
    color: #777; 
    transition: 0.3s; 
}

.submit-btn-v {
    font-family: var(--main-font) !important;
    font-weight: 600 !important; /* Using Demi variant */
    border-radius: 35px !important;
    height: 54px !important;
    font-size: 18px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* ==========================================================================
   VUETIFY COMPONENTS STYLING (Inputs & Buttons)
   ========================================================================== */

/* Custom styling for Vuetify Text Fields */
.custom-v-input .v-field {
    border-radius: 30px !important;
    background-color: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    transition: 0.2s !important;
}

/* Remove default Vuetify borders */
.custom-v-input .v-field__outline { display: none !important; }

/* Focus state border color */
.custom-v-input .v-field--focused {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 1px var(--primary-green) !important;
}

.custom-v-input .v-field__input {
    padding: 12px 15px !important;
    min-height: 48px !important;
    direction: rtl;
}

/* Prepend icon alignment */
.custom-v-input .v-field__prepend-inner {
    color: var(--primary-green) !important;
    opacity: 0.7;
    padding-top: 0 !important;
    display: flex;
    align-items: center !important;
    margin-inline-start: 1rem;
}

/* Align validation messages to the right */
.v-messages__message {
    text-align: start;
}

/* Styling for the Vuetify Button (v-btn) */
.submit-btn-v {
    border-radius: 35px !important;
    height: 54px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.submit-btn-v .v-btn__content, 
.submit-btn-v .v-progress-circular {
    color: white !important;
}

/* ==========================================================================
   TAB NAVIGATION
   ========================================================================== */
.tabs { 
    display: flex; 
    background: #f0f2f2; 
    border-radius: 30px; 
    padding: 4px; 
    margin-bottom: 25px; 
}

.tab-btn { 
    flex: 1; 
    border: none; 
    background: none; 
    padding: 12px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: bold; 
    color: #777; 
    transition: 0.3s; 
}

.tab-btn.active { 
    background: white; 
    color: #000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

/* ==========================================================================
   CAROUSEL & OVERLAY (Swiper)
   ========================================================================== */
.swiper { width: 100%; height: 100%; }
.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay { 
    z-index: 2;
    position: absolute;
    inset: 0;
    position: absolute; 
    inset: 0; 
    background: linear-gradient(transparent, rgba(0, 104, 55, 0.85)); 
    padding: 60px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    color: white; 
}

.hero-content .hero-title { 
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
    color: #FFFFFF;
    max-width: 750px;
    margin-bottom: 50px;
}

/* Carousel navigation controls */
.hero-controls { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    position: absolute; 
    left: 60px; 
    bottom: 60px; 
}

.hero-controls .arrows{
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.arrow-btn { background: none; border: none; cursor: pointer; }
.arrow-btn img { width: 45px; height: 45px; }

.slide-sub-content{
    display: flex;
    gap:1.5rem;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    text-align: start;
    color: #FFFFFF;
    max-width: 450px;
}

.slide-number { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 2px;
    min-width: 56px;
    height: 56px;
    background: #FFFFFF;
    border-radius: 4px;
    flex: none;
    font-weight: 400;
    font-size: 32px;
    line-height: 1;
    color: #004128;
}

/* ==========================================================================
   LOADING STATES (Overlays)
   ========================================================================== */

/* Full page loader - Pure white and opaque */
.page-loader .v-overlay__scrim {
    opacity: 1 !important;
    background-color: white !important;
}

/* Form submission loader - Semi-transparent gray/black */
.submit-loader .v-overlay__scrim {
    opacity: 0.5 !important;
    background-color: black !important;
}

/* ==========================================================================
   AUTOFILL FIXES (Browser Cleanup)
   ========================================================================== */
/* Fix for Chrome's yellow background on saved credentials */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { 
    height: 60px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 40px; 
    font-size: 12px; 
    color: #888; 
    border-top: 1px solid #eee; 
}

.site-footer a{
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #00280F;
    text-decoration: none;
}

.footer-nav ul{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3.5rem;
}
.footer-right{
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #00280F;
}
.footer-left{
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #00280F;
}


.legal-content-wrapper a {
    color: var(--primary-green);
}

.legal-content-wrapper :deep(a:hover),
.legal-content-wrapper a:hover {
    text-decoration: underline;
}