.footer {
  width: 100%;
  background: #1e1e4d;
  color: #ffffff;
  padding: 50px 60px 0;
  justify-content: center;
  align-items: center;
}

/* ---------- Newsletter ---------- */
.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 50px;
}

.newsletter-text {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.newsletter-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-icon i {
  font-size: 44px;
  color: #ffffff;
  font-weight: 300;
}

.newsletter-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.newsletter-text p {
  font-size: 14px;
  color: #ffff;
  line-height: 1.5;
  font-weight: 400;
}

.newsletter-form {
  display: flex;
  background: #d9d9d9;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;          /* was 577px — now shrinks safely on small screens */
  max-width: 577px;     /* keeps the exact desktop size */
  height: 60px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 6px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  min-width: 0;  
}

.newsletter-form .em-btn {
  align-self: stretch;     /* forces full 60px height regardless of any em-btn height rule */
  height: auto;
  flex-shrink: 0;
  margin: 0;
  border: 0;
  border-radius: 0;        /* form's overflow:hidden rounds the right corners */
  background: #4f6df5;
  color: #fff;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.newsletter-form input::placeholder {
  color: #888;
}

.newsletter-form button {
  background: #4f6df5;
  color: #ffffff;
  border: none;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
  display: flex;            /* keeps label centered in full height */
  align-items: center;
  justify-content: center;
  white-space: nowrap;      /* never wraps when form shrinks */
  /* left corners stay square (flush against input);
     the form's overflow:hidden rounds the right corners */
}

.newsletter-form button:hover {
  background: #3d5be8;
}

/* ---------- Main columns ---------- */
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
}

/* Brand column */
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

.logo-mark {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4f6df5 0%, #00bfff 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  font-style: italic;
  position: relative;
}

.logo-mark::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: #00bfff;
  border-radius: 2px;
}

.footer-brand p {
  font-size: 18px;
  line-height: 1.6;
  color: #ffff;
  margin-bottom: 28px;
  max-width: 360px;
}

.social-icons {
  display: flex;
  gap: 22px;
}

.social-icons a {
  color: #ffffff;
  font-size: 26px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

/* Link columns */
.footer-col h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: #4f6df5;
  border-radius: 2px;
}

.footer-col h3.has-end-line::before {
  content: '';
  position: absolute;
  /* right: -60px; */
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #4f6df5;
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
  margin-top: 18px;
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #00bfff;
}

/* ---------- Bottom bar ---------- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #d4d4e4;
}

.payment-methods {
  display: flex;
  gap: 30px;
  align-items: center;
}

.pay-icon {
  background: #ffffff;
  border-radius: 5px;
  height: 30px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a4d;
  letter-spacing: 0.5px;
}

.pay-icon.visa { color: #1a1f71; font-style: italic; font-size: 14px; }
.pay-icon.mc { font-size: 9px; color: #555; }
.pay-icon.upi { color: #6c2bd9; font-weight: 800; font-style: italic; }
.pay-icon.phonepe {
  font-size: 16px;
  font-weight: 800;
}

/* ---------- Responsive ---------- */

/* Tablet landscape */
@media (max-width: 1024px) {
  .footer { padding: 40px 30px 0; }
  .footer-newsletter { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-form { max-width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .footer { padding: 36px 24px 0; }
  .newsletter-text h2 { font-size: 24px; }
  .footer-main { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .payment-methods { flex-wrap: wrap; justify-content: center; gap: 38px; }
}

/* Phones */
@media (max-width: 600px) {
  .footer { padding: 32px 20px 0; }
  .newsletter-text { gap: 14px; }
  .newsletter-text h2 { font-size: 22px; }
  .newsletter-icon { width: 44px; height: 44px; }
  .newsletter-icon i { font-size: 34px; }
  .newsletter-form { height: 54px; width: 100%; }  /* was width: 101% (overflowed) */
  .newsletter-form button { padding: 0 22px; font-size: 13px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { font-size: 16px; }
  .footer-col h3 { font-size: 20px; }
  .social-icons a { font-size: 24px; }
}

/* Small phones */
@media (max-width: 400px) {
  .footer { padding: 28px 16px 0; }
  .newsletter-text h2 { font-size: 20px; }
  .newsletter-text p { font-size: 13px; }
  .newsletter-form { height: 50px; border-radius: 8px; width:auto; }
  .newsletter-form input { padding: 0 12px; font-size: 14px; }
  .newsletter-form button {
    padding: 0 16px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  .footer-brand p { font-size: 15px; }
  .social-icons { gap: 18px; }
  .social-icons a { font-size: 22px; }
  .payment-methods { gap: 28px; }
  .footer-bottom p { font-size: 13px; }
}