/* =========================================
   IBNS DIGITAL DIRECTORY – Premium Style
   Inspired by Apple.com Design Language
   ========================================= */

:root {
  /* ===== Core Colors ===== */
  --color-primary: #e63946; /* IBNS Red */
  --color-secondary: #1d1d1f; /* Apple deep gray */
  --color-background: #ffffff;
  --color-surface: #f5f5f7;
  --color-border: #d2d2d7;
  --color-text: #1d1d1f;
  --color-muted: #6e6e73;
  --color-focus: #0071e3; /* Subtle Apple blue accent */

  /* ===== Typography ===== */
  --font-family-base: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-sm: 14px;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ===== Layout ===== */
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --transition-fast: 0.25s ease;
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-family-base);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.container {
  max-width: 960px;
  margin: 60px auto;
  padding: 0 24px;
}

/* ===== Header ===== */
h1 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

/* ===== Section Title ===== */
.section-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-secondary);
  background: var(--color-surface);
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin: 40px 0 20px;
}

/* ===== Form ===== */
form {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

form:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ===== Inputs ===== */
label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-secondary);
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group {
  margin-bottom: 22px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  user-select: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.25);
}

.btn-primary:hover {
  background: #c71c2b;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Flex Layout ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ===== Footer Note ===== */
.footer-note {
  text-align: center;
  margin-top: 50px;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  letter-spacing: 0.2px;
}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 1.9rem;
  }
  form {
    padding: 25px 20px;
  }
}



/* =========================================
   FULLSCREEN HEADER – IBNS Digital Directory
   ========================================= */

.form-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full screen height */
  text-align: center;
  background: radial-gradient(circle at top, #111113, #0a0a0b 70%);
  color: #fff;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
  animation: fadeInHero 1.2s ease both;
}

/* Optional decorative subtle glow or gradient */
.form-header::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 200px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
}

.form-title {
  font-size: 2.4rem;
  font-weight: 1700;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #fff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 2;
  animation: slideUp 1s ease both;
}

.form-description {
  margin-top: 18px;
  font-size: 1.1rem;
  color: #a9a9aa;
  max-width: 600px;
  line-height: 1.6;
  z-index: 2;
  animation: fadeIn 1.4s ease both;
}

/* ===== CTA Button (Optional) ===== */
.form-header .btn-hero {
  margin-top: 40px;
  padding: 14px 32px;
  border-radius: 30px;
  background: var(--color-primary, #e63946);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.35);
  transition: all 0.3s ease;
  z-index: 2;
}

.form-header .btn-hero:hover {
  background: #ff4151;
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(230, 57, 70, 0.55);
}

/* ===== Animations ===== */
@keyframes fadeInHero {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .form-title {
    font-size: 1.8rem;
  }

  .form-description {
    font-size: 1rem;
  }
}






