* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #050505;
  color: #ffffff; /* Forces default base text to pure white */
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  /* Reduced darkness to 0.20 and 0.40 to make the background significantly brighter */
  background: linear-gradient(
      rgba(0, 0, 0, 0.20),
      rgba(0, 0, 0, 0.40)
    ),
    url('https://tamilintel.com/homepage-preview.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

/* BACKGROUND PROTECTION OVERLAY */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05); /* Dropped to 5% to let maximum original brightness through */
  z-index: 1;
}

/* CONTENT AREA */
.hero-content {
  width: 100%;
  max-width: 900px;
  z-index: 2;
  margin: 0 auto;
}

/* TITLE */
.hero h1 {
  font-size: clamp(2.0rem, 5vw, 3.8rem); /* Fluid scaling to prevent desktop clipping */
  line-height: 1.3;
  margin-bottom: 28px;
  font-family: 'Noto Sans Tamil', sans-serif;
  font-weight: 700;
  color: #ffffff !important; /* Force-restores solid crisp white text */
  /* Deep structural text shadow to lift white font off the bright background */
  text-shadow: 
    0 4px 16px rgba(0, 0, 0, 1),
    0 2px 8px rgba(0, 0, 0, 1),
    0 1px 2px rgba(0, 0, 0, 1);
  word-break: keep-all;
}

/* PARAGRAPHS */
.hero p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.8;
  color: #ffffff !important; /* Force-restores clean white text readability */
  text-shadow: 
    0 3px 12px rgba(0, 0, 0, 1),
    0 1px 4px rgba(0, 0, 0, 1);
}

/* BUTTON WRAPPER */
.buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  background: linear-gradient(135deg, #8b0000, #c40000);
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(179, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.4;
}

/* BUTTON HOVER */
.btn:hover {
  background: linear-gradient(135deg, #c40000, #ff1a1a);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.55);
}

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 40px 16px;
    align-items: center; 
    background-position: center center;
    
    /* Brightened mobile view background filter */
    background: linear-gradient(
        rgba(0, 0, 0, 0.20),
        rgba(0, 0, 0, 0.45)
      ),
      url('https://tamilintel.com/mobile-preview.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    width: 100vw;
    max-width: 100%;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .hero h1 {
    font-size: 1.85rem; /* Reduced slightly to prevent text clipping on standard mobile screens */
    line-height: 1.35;
    margin-bottom: 22px;
    width: 100%;
    padding: 0 4px;
  }

  .hero p {
    font-size: 0.98rem; /* Scaled perfectly for small smartphone viewports */
    line-height: 1.7;
    margin-bottom: 18px;
    width: 100%;
    padding: 0 8px;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 28px;
  }

  .btn {
    display: flex; 
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    padding: 14px 16px;
  }
} /* Everything now closes safely inside the responsive container block */
/* ==========================================================================
   TRIBUTE & FLOWER FORM PAGES STYLING 
   ========================================================================== */
/* ==========================================================================
   TRIBUTE & FLOWER FORM PAGES STYLING 
   ========================================================================== */

.form-page {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(
      rgba(0, 0, 0, 0.40),
      rgba(0, 0, 0, 0.65)
    ),
    url('https://tamilintel.com/mobile-preview.jpg'); /* Uses portrait mobile preview asset natively */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100vw;
  max-width: 100%;
}

.form-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 650px;
  background: rgba(15, 15, 15, 0.85); /* Dark protective panel base */
  backdrop-filter: blur(16px);          /* Frosted glass windowing */
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.form-container h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 16px;
  font-family: 'Noto Sans Tamil', sans-serif;
  color: #ffffff;
  font-weight: 700;
}

.subtitle {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #dddddd;
  font-size: 1rem;
}

.tamil {
  font-family: 'Noto Sans Tamil', sans-serif;
  color: #bbbbbb;
  margin-bottom: 24px;
}

/* FORM LAYOUT SYSTEM - FIXES HORIZONTAL SQUISHING */
.form-container form {
  margin-top: 24px;
  display: flex;
  flex-direction: column; /* Forces everything to stack cleanly vertical */
  width: 100%;
}

.form-container form input,
.form-container form textarea,
.form-container form select {
  display: block; /* Standardizes input container shapes */
  width: 100% !important; /* Overrides any native smartphone scaling bugs */
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.form-container form textarea {
  font-family: inherit;
  resize: none;
  min-height: 120px; /* Provides fixed container height profile across viewports */
}

/* INTERACTIVE STATES */
.form-container form input:focus,
.form-container form textarea:focus,
.form-container form select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #c40000;
  box-shadow: 0 0 12px rgba(196, 0, 0, 0.3);
}

.form-container form input::placeholder,
.form-container form textarea::placeholder {
  color: #888888;
}

.moderation-note {
  font-size: 0.88rem;
  color: #888888;
  margin-top: -4px;
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.4;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: #888888;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #ffffff;
}

/* COMPREHENSIVE RESPONSIVE MOBILE FIXES */
@media (max-width: 768px) {
  .form-page {
    padding: 30px 16px;
    align-items: center;
    background-position: center center;
  }

  .form-container {
    padding: 32px 20px; /* Snaps card padding beautifully safe for smaller device frames */
    background: rgba(10, 10, 10, 0.92); /* Darkened slightly on mobile to block background noise */
  }

  .form-container h1 {
    font-size: 1.8rem;
    margin-bottom: 14px;
  }
  
  .subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .form-container form input,
  .form-container form textarea,
  .form-container form select {
    padding: 14px 16px;
    font-size: 0.98rem;
    margin-bottom: 14px;
  }

  .form-container form .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 20px;
    font-size: 1.05rem;
  }
}