* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure proper container behavior */
html {
  width: 100%;
  height: -webkit-fill-available;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) fixed !important;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #1a202c;
  width: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-top: 0.6rem !important;
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  position: relative;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header {
  text-align: center;
  /* margin-bottom: 1.5rem; */
  color: white;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.header-logo {
  width: 48px;
  height: 48px;
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.header h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  text-align: center;
  width: 100%;
}

/* Hero Section Styles */
.hero-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem auto;
  margin-top: 1rem !important;
  max-width: 1200px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-logo-img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
  background: rgba(17, 17, 17, 0.239);
  padding: 6px;
}

.hero-logo h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  margin: 0;
}

.hero-description h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 1px 1px 6px rgba(67, 233, 123, 0.18),
    0 1px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.hero-description p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.feature-item i {
  font-size: 1.5rem;
  color: #4fd1c7;
}

.feature-item span {
  font-weight: 600;
  color: white;
  font-size: 0.6rem;
}

.hero-cta {
  margin: 1rem 0;
}

.hero-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #4fd1c7 0%, #14b8a6 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 209, 199, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 209, 199, 0.4);
}

.cta-button:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Smooth scroll animation enhancements */
.form-section {
  scroll-margin-top: 2rem;
}

@media (max-width: 768px) {
  .form-section {
    scroll-margin-top: 1rem;
  }
}

.hero-credits {
  /* margin-top: 1rem; */
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-credits p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  /* margin: 0.5rem 0; */
}

/* Enable sticky preview on desktop and up */
@media (min-width: 1024px) {
  .preview-section {
    position: sticky;
    top: 2rem;
  }
}

/* Informational card sections */
.info-sections {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .info-sections {
    grid-template-columns: 1fr 1fr;
  }
  .info-sections #privacy-policy {
    grid-column: span 2;
  }
}

.card-section {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.95);
}

.section-heading {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.gradient-heading {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) fixed !important; */
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
  color: #22f9e0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.card-section p {
  color: #0d201e;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

/* Accordion */
.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion-item {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-header::after {
  content: "+";
  font-size: 1.25rem;
  opacity: 0.9;
}

.accordion-header[aria-expanded="true"]::after {
  content: "−";
}

.accordion-panel {
  padding: 0 1.25rem 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.92);
}

.creator-link,
.portfolio-link {
  color: #4fd1c7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.creator-link:hover,
.portfolio-link:hover {
  color: #14b8a6;
  text-decoration: underline;
}

/* Instagram Link Styles */
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e4405f;
  text-decoration: none;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    rgba(228, 64, 95, 0.1) 0%,
    rgba(228, 64, 95, 0.05) 100%
  );
  border: 2px solid rgba(228, 64, 95, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(228, 64, 95, 0.2);
}

.instagram-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #e4405f 0%, #c13584 100%);
  border-color: #e4405f;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
  text-decoration: none;
}

.instagram-link:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.instagram-link i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.instagram-link:hover i {
  transform: scale(1.1) rotate(5deg);
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  min-height: auto;
  width: 100%;
}

.form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: fit-content;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.preview-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  min-height: auto;
  height: auto;
  position: relative;
  top: auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.section-icon {
  font-size: 1.2rem;
  color: #667eea;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #4fd1c7 0%, #14b8a6 100%);
}

.btn-secondary:hover {
  box-shadow: 0 10px 25px rgba(79, 209, 199, 0.4);
}

.signature-pad {
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  width: 100%;
  height: 150px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signature-pad:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.signature-canvas {
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.preview-biodata {
  font-family: "Inter", sans-serif;
  color: white;
}

.preview-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
  border-bottom: 3px solid #32cd32;
  padding-bottom: 1rem;
}

.preview-section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #00186f;
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-section-title i {
  color: #32cd32; /* Lime green */
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.preview-field {
  margin-bottom: 0.75rem;
}

.preview-label {
  font-weight: 600;
  color: white;
  display: inline-block;
  min-width: 140px;
}

.preview-value {
  color: rgba(255, 255, 255, 0.9);
}

.preview-list {
  list-style: none;
  padding-left: 0;
}

.preview-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.preview-list li:before {
  content: "▸";
  color: #32cd32; /* Lime green */
  font-weight: bold;
}

.signature-preview {
  max-width: 200px;
  max-height: 80px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 1rem;
}

.buttons-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Education Table Styles */
.education-table-container {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.education-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.education-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.education-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.education-table tr:last-child td {
  border-bottom: none;
}

.table-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.table-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.btn-small {
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Signature Options Styles */
.signature-method-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.signature-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.signature-option input[type="radio"] {
  margin: 0;
}

.signature-font-options {
  margin-top: 1rem;
}

.text-signature-preview {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  color: #2d3748;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed #e2e8f0;
  border-radius: 8px;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.signature-cursive {
  font-family: "Brush Script MT", cursive;
}
.signature-dancing-script {
  font-family: "Dancing Script", cursive;
}
.signature-great-vibes {
  font-family: "Great Vibes", cursive;
}
.signature-allura {
  font-family: "Allura", cursive;
}

.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape:nth-child(odd) {
  animation-duration: 8s;
}

.shape:nth-child(even) {
  animation-duration: 7s;
}

.shape:nth-child(3n) {
  animation-duration: 9s;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 55%;
  right: 12%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 25%;
  left: 15%;
  animation-delay: 4s;
}

.shape:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 35%;
  right: 25%;
  animation-delay: 1s;
}

.shape:nth-child(5) {
  width: 70px;
  height: 70px;
  bottom: 40%;
  right: 8%;
  animation-delay: 3s;
}

.shape:nth-child(6) {
  width: 90px;
  height: 90px;
  top: 70%;
  left: 5%;
  animation-delay: 5s;
}

.shape:nth-child(7) {
  width: 50px;
  height: 50px;
  top: 25%;
  left: 60%;
  animation-delay: 1.5s;
}

.shape:nth-child(8) {
  width: 110px;
  height: 110px;
  bottom: 15%;
  right: 35%;
  animation-delay: 2.5s;
}

.shape:nth-child(9) {
  width: 75px;
  height: 75px;
  top: 45%;
  left: 25%;
  animation-delay: 3.5s;
}

.shape:nth-child(10) {
  width: 85px;
  height: 85px;
  bottom: 60%;
  left: 45%;
  animation-delay: 4.5s;
}

.shape:nth-child(11) {
  width: 65px;
  height: 65px;
  top: 80%;
  right: 20%;
  animation-delay: 0.5s;
}

.shape:nth-child(12) {
  width: 95px;
  height: 95px;
  top: 10%;
  right: 5%;
  animation-delay: 5.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-15px) rotate(90deg) scale(1.1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-25px) rotate(180deg) scale(1.05);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-10px) rotate(270deg) scale(0.95);
    opacity: 0.6;
  }
}

/* Install PWA Section */
.install-section {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.install-button {
  background: linear-gradient(135deg, #4fd1c7 0%, #14b8a6 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 209, 199, 0.3);
}

.install-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 209, 199, 0.4);
}

.ios-install-tip {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 90%;
  width: 320px;
  animation: slideUp 0.3s ease;
}

.ios-install-tip.show {
  display: block;
}

.ios-tip-content {
  position: relative;
  color: #2d3748;
}

.ios-tip-content p {
  margin: 0.5rem 0;
  font-weight: 600;
}

.ios-tip-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.ios-tip-content li {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ios-tip-content i {
  color: #4fd1c7;
}

.close-tip {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ef4444;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-tip:hover {
  background: #dc2626;
  transform: scale(1.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Preview Education Table Styles */
.preview-education-table {
  overflow-x: auto; /* Match the education-table-container style */
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch; /* Keep smooth scrolling on iOS */
}

.preview-education-table table {
  width: 100%;
  border-collapse: collapse;
  background: white; /* Match the form table background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.preview-education-table thead tr {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 100%
  ); /* Match the form table header */
  border-bottom: 2px solid #e2e8f0;
}

.preview-education-table th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: white; /* Match the form table header text color */
}

.preview-education-table td {
  padding: 0.75rem;
  color: #2d3748; /* Match the form table text color */
  border-bottom: 1px solid #e2e8f0;
}

.preview-education-table tbody tr:last-child td {
  border-bottom: none;
}

/* Footer Styles */
.footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  text-align: center;
}

.footer-content p {
  color: white;
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
}

.footer-link {
  color: #4fd1c7;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #14b8a6;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem 0.5rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
  }

  .header {
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
  }

  .header-content {
    gap: 0.75rem;
  }

  .header-logo {
    width: 40px;
    height: 40px;
  }

  .header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    text-align: center;
    width: 100%;
  }

  .header p {
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
  }

  .form-section,
  .preview-section {
    padding: 1.25rem;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .preview-section {
    min-height: auto;
    margin-top: 1rem;
    order: 2;
    position: relative;
    top: auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .form-section {
    order: 1;
    position: relative;
    top: auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Mobile form improvements */
  .preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .preview-title {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
  }

  .preview-section-title {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.75rem 0;
  }

  .preview-label {
    min-width: auto;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
  }

  .preview-value {
    font-size: 0.9rem;
  }

  .preview-field {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .buttons-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .signature-pad {
    height: 100px;
  }

  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }

  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .education-table-container {
    overflow-x: auto;
    margin-bottom: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  .education-table {
    min-width: 600px;
  }

  .education-table th,
  .education-table td {
    min-width: 120px;
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .table-input {
    min-width: 100px;
    font-size: 13px;
    padding: 0.4rem;
  }

  .signature-method-selector {
    flex-direction: column;
    gap: 0.75rem;
  }

  .text-signature-preview {
    font-size: 1.5rem;
    min-height: 60px;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .hero-logo h2 {
    font-size: 2rem;
  }

  .hero-description h3 {
    font-size: 1.5rem;
  }

  .hero-description p {
    font-size: 1rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .feature-item {
    padding: 0.75rem;
  }

  .feature-item i {
    font-size: 1.25rem;
  }

  .feature-item span {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .footer {
    padding: 1rem 0;
    margin-top: 2rem;
  }

  .footer-content p {
    font-size: 0.9rem;
  }

  .instagram-link {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }

  .instagram-link i {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .preview-education-table table {
    min-width: 500px; /* Match the education-table mobile style */
  }

  .preview-education-table th,
  .preview-education-table td {
    font-size: 0.75rem;
    padding: 0.4rem;
  }

  .main-container {
    padding: 0.5rem 0.25rem;
    max-width: 100%;
    padding-bottom: 2rem;
    overflow-x: hidden;
  }

  .header h1 {
    font-size: 1.8rem;
    line-height: 1.1;
    text-align: center;
    width: 100%;
  }

  .header p {
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
  }

  .form-section,
  .preview-section {
    padding: 1rem;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible; /* Allow vertical content to scroll */
  }

  .preview-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .preview-section-title {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
  }

  .preview-label {
    font-size: 0.85rem;
  }

  .preview-value {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .form-label {
    font-size: 0.85rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.625rem;
    font-size: 16px;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    max-width: 250px;
  }

  .education-table {
    min-width: 500px;
  }

  .education-table th,
  .education-table td {
    font-size: 0.75rem;
    padding: 0.4rem;
  }

  .table-input {
    font-size: 12px;
    padding: 0.3rem;
  }

  .signature-pad {
    height: 80px;
  }

  .text-signature-preview {
    font-size: 1.2rem;
    min-height: 50px;
  }

  .buttons-container {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  /* Keep side-by-side layout for medium mobile */
  .preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .header-content {
    gap: 0.5rem;
  }

  .header-logo {
    width: 36px;
    height: 36px;
  }

  .footer {
    padding: 0.75rem 0 1.5rem 0;
    margin-top: 0rem;
  }

  .footer-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .main-container {
    padding: 0.25rem 0.125rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .header h1 {
    font-size: 1.6rem;
    text-align: center;
    width: 100%;
  }

  .header p {
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
  }

  .form-section,
  .preview-section {
    padding: 0.75rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .preview-title {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
    max-width: 220px;
  }

  .education-table {
    min-width: 450px;
  }

  .education-table th,
  .education-table td {
    font-size: 0.7rem;
    padding: 0.3rem;
  }

  .table-input {
    font-size: 11px;
    padding: 0.25rem;
  }

  /* Single column for very small screens */
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .preview-field {
    margin-bottom: 0.5rem;
  }

  .header-content {
    gap: 0.5rem;
  }

  .header-logo {
    width: 32px;
    height: 32px;
  }

  /* Hero Section Small Mobile */
  .hero-section {
    padding: 1rem;
    margin: 0.5rem auto;
  }

  .hero-logo h2 {
    font-size: 1.8rem;
  }

  .hero-description h3 {
    font-size: 1.3rem;
  }

  .hero-description p {
    font-size: 0.9rem;
  }

  .hero-features {
    gap: 0.75rem;
  }

  .feature-item {
    padding: 0.5rem;
  }

  .feature-item i {
    font-size: 1.1rem;
  }

  .feature-item span {
    font-size: 0.85rem;
  }

  .cta-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-credits p {
    font-size: 0.85rem;
  }

  .instagram-link {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .instagram-link i {
    font-size: 1rem;
  }

  .footer {
    padding: 0.5rem 0;
    margin-top: 1rem;
  }

  .footer-content p {
    font-size: 0.8rem;
  }
}

marquee {
  font-size: 0.86rem;
  text-align: center;
  font-weight: 700;
  background: linear-gradient(135deg, #3c5ce8a1 0%, #764ba2b3 100%) fixed !important;
  color: #00186f;
}
marquee a {
  text-decoration: none !important;
  color: #0e30ae;
  font-weight: 500;
}
@media (min-width: 700px) {
  marquee {
    font-size: 1.6rem;
    background: none !important;
    color: #00186f;
  }
  marquee a {
    padding-bottom: 1rem !important;
  }
}
