/*
Theme Name: EcoFood Theme
Author: EcoFoodLtd
Version: 1.2
*/

/* style */
*, *:before, *:after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f6fbf6;
  color: #1f2d1f;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: white;
  border-bottom: 1px solid #e6efe6;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-left img {
  height: 130px !important;
  max-width: 100%;
}

.company {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: #1f7a3a;
}

.direction {
  font-size: 14px;
  color: #2f6b3b;
}

.header-right {
  text-align: right;
}

.header-right .main {
  font-family: 'Oswald';
  font-size: 20px;
  font-weight: 700;
  color: #1f7a3a;
}

.header-right .sub {
  font-size: 16px;
  color: #3fbf6b;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px;
  gap: 40px;
}

.hero h1 {
  font-family: 'Oswald';
  font-size: 42px;
  color: #1f7a3a;
  margin: 0;
}

.subtitle {
  font-size: 18px;
  color: #19a34a;
}

.savings {
  margin-top: 18px;
  padding: 16px 20px;
  background: #e9f8ee;
  border-left: 5px solid #1f7a3a;
  font-family: 'Oswald';
  font-size: 20px;
  color: #1f7a3a;
  font-weight: 600;
}

.savings span {
  font-size: 26px;
  color: #0f8f3a;
}

section {
  padding: 60px;
}

h2 {
  font-family: 'Oswald';
  color: #1f7a3a;
  font-size: 28px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 26px;
  color: #1f7a3a;
  margin-bottom: 12px;
}

.card-text {
  font-size: 18px;
  color: #2f3b2f;
  line-height: 1.6;
  font-weight: 600;
}

.form-section {
  display: flex;
  gap: 40px;
  align-items: center;
}

.presentation-image img {
  width: 100%;
  border-radius: 14px;
  max-width: 100%;
}

.form-image img {
  width: 100%;
  border-radius: 14px;
  max-width: 100%;
}

.form {
  background: #ffffff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.form input,
.form textarea {
  width: 100%;
  display: block;
  padding: 14px 16px;
  margin-top: 12px;
  border: 2px solid #dfe8df;
  border-radius: 10px;
  font-size: 16px;
}

button {
  background: #1f7a3a;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

footer {
  padding: 40px;
  text-align: center;
  background: #1f2d1f;
  color: white;
}

.process {
  position: relative;
  max-width: 900px;
  margin: auto;
}

/* line */
.process::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #1f7a3a;
  opacity: 0.2;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  position: relative;
}

.circle {
  width: 60px;
  height: 60px;
  background: #1f7a3a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald';
  font-size: 20px;
  z-index: 2;
}

.content {
  background: white;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  flex: 1;
}

.content h3 {
  margin: 0;
  font-family: 'Oswald';
  color: #1f7a3a;
}

.content p {
  margin: 5px 0 0;
  font-size: 18px;
  color: #3a4a3a;
}

#form-response {
    padding: 20px;
    background: #e7f3eb;
    border-radius: 5px;
    color: #2e7d32;
    text-align: center;
    line-height: 1.6;
}

/* ===== MODERN FORM STYLE ===== */

.form {
  background: #ffffff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  max-width: 420px;
  width: 100%;
}

/* INPUTS */
.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-top: 12px;
  border: 2px solid #dfe8df;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.25s ease;
  outline: none;
  background: #fafdfb;
}

/* FOCUS */
.form input:focus,
.form textarea:focus {
  border-color: #1f7a3a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31,122,58,0.15);
}

/* PLACEHOLDER */
.form input::placeholder,
.form textarea::placeholder {
  color: #9bb79b;
}

/* BUTTON */
.form button {
  width: 100%;
  margin-top: 15px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #1f7a3a, #2dbf6b);
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

/* HOVER */
.form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(31,122,58,0.25);
}

/* ACTIVE */
.form button:active {
  transform: scale(0.98);
}

/* ERROR */
.form input.error {
  border-color: #e74c3c;
  background: #fff5f5;
}

/* SUCCESS MESSAGE */
#formStatus {
  font-size: 14px;
  margin-top: 10px;
}
/* MOBILE */
@media (max-width: 900px) {
     section {
       padding: 40px 15px;
     }

     .form {
       padding: 20px;
       max-width: 100%;
     }

     .form-section {
       padding: 0;
       gap: 20px;
     }
     
     .header-left img {
       height: auto;
       max-width: 180px;
     }

     header {
       flex-direction: column;
       text-align: center;
       padding: 15px 20px;
       gap: 10px;
     }

     .header-left {
       flex-direction: column;
       gap: 8px;
     }

     .header-right {
       text-align: center;
       display: none;
     }

     .hero {
       flex-direction: column;
       padding: 20px;
       text-align: center;
     }

     .hero h1 {
       font-size: 28px;
     }

     .arrow {
       display:none;
     }

     .step {
       width:100%;
     }

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

     .form-section {
       flex-direction: column;
     }

     .savings {
       font-size: 16px;
     }

     .card {
       padding: 20px;
     }

     .header-left img {
       height: 150px;
     }

     .process::before {
       left: 20px;
     }

     .circle {
       width: 45px;
       height: 45px;
       font-size: 16px;
     }
}

/* animation car */
.form-image {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.form-image img.car {
    display: block;
    width: 100%;
    height: auto;
}

.form-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%; 
    width: 50%;
    height: 100%;
    
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%
    );
    
    transform: skewX(-25deg);
    animation: move-light 2s infinite;
}

@keyframes move-light {
    0% {
        left: -150%;
    }
    30% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

.header-left .logo-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: 8px;
}

.header-left img {
    display: block;
    height: 100px;
    width: auto;
}

.header-left .logo-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.6) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    animation: shine-logo 4s infinite ease-in-out;
}

@keyframes shine-logo {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}
