
/* =========================================
   GLOBAL
========================================= */

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

body {
  font-family: Arial, sans-serif;
  background: #fff8f5;
  color: #3b2525;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================================
   HEADER
========================================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header h2 {
  font-size: 20px;
  color: #5b2929;
}

header button,
#startBtn {
  border: none;
  padding: 12px 18px;
  border-radius: 25px;
  background: #8b3a3a;
  color: white;
}

header button:hover,
#startBtn:hover {
  background: #6f2929;
}

header a {
  color: #8b3a3a;
  text-decoration: none;
  font-weight: bold;
}

/* =========================================
   HOME HERO
========================================= */

.hero {
  text-align: center;
  padding: 75px 20px;
}

.small-text {
  font-size: 12px;
  letter-spacing: 2px;
  color: #8b3a3a;
  margin-bottom: 15px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #3b2525;
}

.hero-description {
  max-width: 550px;
  margin: 0 auto 25px;
  line-height: 1.6;
  color: #5f4b4b;
}

#startBtn {
  font-size: 16px;
  padding: 15px 25px;
}

/* =========================================
   FEATURES
========================================= */

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.feature {
  width: 100%;
  max-width: 320px;
  padding: 25px 18px;
  border-radius: 18px;
  background: white;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.feature span {
  font-size: 35px;
}

.feature h3 {
  margin: 12px 0 8px;
  color: #4a2929;
}

.feature p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* =========================================
   PREMIUM HOME SECTION
========================================= */

.premium-section {
  padding: 55px 18px;
  text-align: center;
  background: #fffdf9;
}

.premium-small-text {
  font-size: 12px;
  letter-spacing: 3px;
  color: #a87920;
  margin-bottom: 10px;
}

.premium-section > h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  color: #5b1720;
  margin-bottom: 10px;
}

.premium-description {
  color: #666;
  line-height: 1.5;
  margin-bottom: 30px;
}

.premium-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
}

.premium-card {
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 30px rgba(70, 30, 20, 0.12);
}

.premium-preview {
  position: relative;
  height: 400px;
  overflow: hidden;
  padding: 48px 15px;
  border: 5px solid #c49a45;
  background: linear-gradient(145deg, #fffaf0, #f6dfd5);
}

.premium-preview::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #c49a45;
  pointer-events: none;
}

.royal-preview {
  background: linear-gradient(145deg, #fffaf0, #f3ddd2, #fff8e8);
}

.floral-card {
  background: linear-gradient(145deg, #fff8fb, #f5dbe5);
  border-color: #c77b91;
}

.floral-card::before {
  border-color: #c77b91;
}

.mandap-card {
  background: linear-gradient(145deg, #fff9e8, #ead5ae, #fff6dc);
  border-color: #9a6818;
}

.mandap-card::before {
  border-color: #a8751c;
}

.premium-symbol {
  position: relative;
  font-size: 42px;
  color: #a4771e;
  margin-bottom: 18px;
}

.floral-card .premium-symbol {
  color: #b45572;
}

.mandap-card .premium-symbol {
  color: #8c5b13;
}

.premium-invite {
  position: relative;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 2px;
  color: #89631d;
  margin-bottom: 22px;
}

.premium-preview h3 {
  position: relative;
  font-family: Georgia, serif;
  font-size: 26px;
  overflow-wrap: anywhere;
  color: #701b27;
  margin: 8px 0;
}

.floral-card h3 {
  color: #8e2949;
}

.premium-weds {
  position: relative;
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
  color: #b38729;
  margin: 8px 0;
}

.premium-line {
  position: relative;
  width: 90px;
  height: 1px;
  margin: 18px auto;
  background: #c49a45;
}

.premium-date {
  position: relative;
  font-size: 12px;
  letter-spacing: 1px;
  color: #5b2929;
}

.premium-flower {
  position: absolute;
  z-index: 2;
  font-size: 36px;
}

.flower-one {
  top: 10px;
  left: 10px;
}

.flower-two {
  right: 10px;
  bottom: 10px;
}

.premium-info {
  padding: 16px 8px 12px;
}

.premium-info h3 {
  font-family: Georgia, serif;
  font-size: 21px;
  color: #5b1720;
  margin-bottom: 8px;
}

.premium-info p {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 15px;
}

.premium-btn {
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  background: #8b3a3a;
  color: white;
}

.premium-btn:hover {
  background: #6f2929;
}

/* =========================================
   CREATOR FORM
========================================= */

.creator {
  width: 94%;
  max-width: 650px;
  margin: 25px auto;
  padding: 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.creator h1 {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 29px;
  color: #6f2929;
  margin-bottom: 10px;
}

.creator > p {
  text-align: center;
  color: #666;
  line-height: 1.5;
  margin-bottom: 22px;
}

.creator label {
  display: block;
  margin-top: 16px;
  margin-bottom: 7px;
  font-weight: bold;
  color: #4b2929;
}

.creator input,
.creator textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #dfcaca;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  background: #fffafa;
  outline: none;
}

.creator input:focus,
.creator textarea:focus {
  border-color: #8b3a3a;
  box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.08);
}

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

#previewBtn {
  width: 100%;
  margin-top: 23px;
  padding: 15px;
  border: none;
  border-radius: 30px;
  background: #8b3a3a;
  color: white;
  font-weight: bold;
}

#previewBtn:hover {
  background: #6f2929;
}

/* =========================================
   DOWNLOAD BUTTON
========================================= */

#downloadBtn {
  display: block;
  width: 90%;
  max-width: 520px;
  margin: 18px auto;
  padding: 15px 20px;
  border: 2px solid #d4af37;
  border-radius: 35px;
  background: linear-gradient(135deg, #7b1725, #b33a4b, #7b1725);
  color: #fff8dc;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 8px 20px rgba(123, 23, 37, 0.2);
}

/* =========================================
   WEDDING CARD PREVIEW
========================================= */

.preview-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 15px 10px 35px;
}

.wedding-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 460px;
  min-height: 0;
  padding: 28px 22px 25px;
  overflow: hidden;
  text-align: center;
  border: 7px solid #c49a45;
  border-radius: 8px;
  background: linear-gradient(145deg, #fffaf2, #f8e4dc);
  box-shadow: 0 15px 40px rgba(80, 30, 20, 0.18);
}

.wedding-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 10px;
  border: 2px solid #c49a45;
  pointer-events: none;
}

.wedding-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 17px;
  border: 1px solid #d8b76b;
  pointer-events: none;
}

.flowers {
  position: absolute;
  z-index: 2;
  top: 15px;
  font-size: 34px;
}

.top-left {
  left: 15px;
}

.top-right {
  right: 15px;
}

.ganesh {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 7px 24px;
  border-top: 2px solid #c49a45;
  border-bottom: 1px solid #d8b76b;
  border-radius: 50% 50% 0 0;
  font-size: 42px;
  color: #a4771e;
}

.blessing {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1.5px;
  color: #8a641d;
}

.invite {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 2px;
  color: #9a6d19;
}

.wedding-card h1 {
  position: relative;
  z-index: 2;
  margin: 8px 0;
  font-family: Georgia, serif;
  font-size: clamp(27px, 7vw, 38px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  color: #721d29;
  text-shadow: 1px 1px 0 #e6c978;
}

.weds {
  position: relative;
  z-index: 2;
  margin: 6px 0;
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: #b1872b;
}

.details {
  position: relative;
  z-index: 2;
  max-width: 380px;
  margin: 16px auto;
  padding: 10px 8px;
  border-top: 1px solid #c49a45;
  border-bottom: 1px solid #c49a45;
}

.details p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: #5c272d;
}

.message {
  position: relative;
  z-index: 2;
  max-width: 380px;
  margin: 12px auto;
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  overflow-wrap: anywhere;
  color: #63333a;
}

.photo-box {
  position: relative;
  z-index: 2;
  width: 125px;
  height: 125px;
  margin: 17px auto 12px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a87819, #f2d67c, #b88622);
  box-shadow: 0 0 0 2px #fff3c7, 0 6px 16px rgba(90, 50, 10, 0.2);
}

.photo-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #fff8ed;
  border-radius: 50%;
}

#photoPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f7e8df;
  color: #987326;
  font-size: 12px;
}

.bottom-decoration {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 23px;
  letter-spacing: 7px;
  color: #b48725;
}

/* =========================================
   ROYAL GOLD TEMPLATE
========================================= */

.template-royal {
  border-color: #b88624;
  background:
    radial-gradient(circle at top, rgba(255, 231, 160, 0.35), transparent 35%),
    linear-gradient(145deg, #fffaf0, #f3ddd2, #fff8e8);
  box-shadow: 0 15px 35px rgba(80, 35, 20, 0.2);
}

.template-royal::before {
  border-color: #b88624;
}

.template-royal::after {
  border-color: #e0bd63;
}

.template-royal .ganesh {
  color: #a87518;
}

.template-royal .invite,
.template-royal .blessing {
  color: #8d6115;
}

.template-royal h1 {
  color: #6e1725;
  text-shadow: 1px 1px 0 #e4c46b;
}

.template-royal .details {
  border-color: #b88624;
  background: rgba(255, 250, 235, 0.45);
}

.template-royal .photo-box {
  background: linear-gradient(135deg, #8d6418, #f3d678, #a87518, #f7df8b);
}

/* =========================================
   FLORAL PINK TEMPLATE
========================================= */

.template-floral {
  border-color: #c77b91;
  background:
    radial-gradient(circle at top left, rgba(255, 190, 210, 0.45), transparent 32%),
    radial-gradient(circle at bottom right, rgba(244, 170, 195, 0.35), transparent 35%),
    linear-gradient(145deg, #fff8fa, #f9e1e8, #fff5f7);
  box-shadow: 0 15px 35px rgba(120, 45, 70, 0.16);
}

.template-floral::before {
  border-color: #c77b91;
}

.template-floral::after {
  border-color: #e4aebe;
}

.template-floral .ganesh {
  color: #b45572;
  border-color: #c77b91;
}

.template-floral .invite,
.template-floral .blessing {
  color: #a04d69;
}

.template-floral h1 {
  color: #8e2949;
  text-shadow: 1px 1px 0 #f0bdcb;
}

.template-floral .weds {
  color: #c06b87;
}

.template-floral .details {
  border-color: #c77b91;
  background: rgba(255, 245, 248, 0.55);
}

.template-floral .photo-box {
  background: linear-gradient(135deg, #a94f70, #f1b6c8, #c86d8d, #f6d0db);
}

/* =========================================
   ROYAL MANDAP TEMPLATE
========================================= */

.template-mandap {
  border-color: #9a6818;
  background:
    radial-gradient(circle at top, rgba(245, 210, 130, 0.4), transparent 35%),
    linear-gradient(145deg, #fff9e8, #ead5ae, #fff6dc);
  box-shadow: 0 15px 35px rgba(80, 45, 15, 0.2);
}

.template-mandap::before {
  border-color: #a8751c;
}

.template-mandap::after {
  border-color: #d5ad58;
}

.template-mandap .ganesh {
  color: #8c5b13;
  border-color: #a8751c;
}

.template-mandap .invite,
.template-mandap .blessing {
  color: #805414;
}

.template-mandap h1 {
  color: #721d29;
  text-shadow: 1px 1px 0 #e3c26a;
}

.template-mandap .details {
  border-color: #a8751c;
  background: rgba(255, 248, 225, 0.5);
}

.template-mandap .photo-box {
  background: linear-gradient(135deg, #805414, #e4c36d, #a36d18, #f0d98b);
}

/* =========================================
   MOBILE LAYOUT
========================================= */

@media (max-width: 600px) {
  header {
    padding: 14px;
  }

  header h2 {
    font-size: 17px;
  }

  header button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 55px 18px;
  }

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

  .features {
    padding: 14px;
  }

  .premium-section {
    padding: 42px 12px;
  }

  .premium-section > h2 {
    font-size: 27px;
  }

  .premium-card {
    max-width: 350px;
  }

  .creator {
    padding: 20px;
    margin: 18px auto;
  }

  .creator h1 {
    font-size: 26px;
  }

  .wedding-card {
    width: 100%;
    padding: 27px 16px 22px;
    border-width: 5px;
  }

  .flowers {
    font-size: 29px;
  }

  .top-left {
    left: 12px;
  }

  .top-right {
    right: 12px;
  }

  .ganesh {
    font-size: 37px;
    padding: 6px 20px;
  }

  .blessing {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .invite {
    margin-top: 18px;
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .details p {
    font-size: 12px;
  }

  .photo-box {
    width: 115px;
    height: 115px;
  }
}

/* =========================================
   PRINT / SAVE AS PDF
========================================= */

@media print {
    #downloadBtn,
  #shareBtn,
  .creator,
  header {
    display: none !important;
  }
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }

  body * {
    visibility: visible !important;
  }
  

  .preview-section,
  .preview-section * {
    visibility: visible !important;
  }

  .preview-section {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wedding-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 155mm !important;
    max-width: 155mm !important;
    min-height: 235mm !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 10mm 7mm !important;
    overflow: visible !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .wedding-card .flowers {
    font-size: 30px !important;
  }

  .wedding-card h1 {
    font-size: 28px !important;
  }

  .wedding-card .ganesh {
    font-size: 36px !important;
  }

  .wedding-card .details {
    margin: 10px auto !important;
    padding: 7px !important;
  }

  .wedding-card .details p {
    margin: 4px 0 !important;
  }

  .wedding-card .message {
    margin: 8px auto !important;
  }

  .wedding-card .photo-box {
    width: 95px !important;
    height: 95px !important;
    margin: 10px auto !important;
  }

  .wedding-card .bottom-decoration {
    margin-top: 5px !important;
  }

  header,
  .creator,
  #downloadBtn {
    display: none !important;
  }
}
