/* ===============================
   FONTS
================================ */

@font-face {
  font-family: "AdobeArabic-Regular";
  src: url("fonts/AdobeArabic-Regular.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "Evian Sans Condensed SemiBold-08af";
  src: url("fonts/EvianSansCondensedSemiBold-08af.otf") format("opentype");
  font-weight: 600;
}

@font-face {
  font-family: "EvianSansSemiBold-52d8";
  src: url("fonts/EvianSansSemiBold-52d8.otf") format("opentype");
  font-weight: 600;
}

@font-face {
  font-family: "Geomanist Medium";
  src: url("fonts/Geomanist-Medium.otf") format("opentype");
  font-weight: 500;
}

@font-face {
  font-family: "Geomanist-Regular";
  src: url("fonts/Geomanist-Regular.otf") format("opentype");
  font-weight: 400;
}

/* ===============================
   BODY + POSTER BACKGROUND
================================ */

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Geomanist-Regular", Arial, sans-serif;
  background-color: #fdebed;

  /* 🔥 CENTER EVERYTHING */
  display: flex;
  justify-content: center;
  align-items: center;

  overflow-x: hidden;
}

/* POSTER IMAGE */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image: url("images/background.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* ❌ no cut, full poster */

  z-index: -1;
}

/* ===============================
   FORM CONTAINER
================================ */

.overlay-form {
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin-top: -30px;
}

/* ===============================
   HEADINGS
================================ */

h1 {
  margin: 0;
  color: #007bc1;
  letter-spacing: 2px;
  font-family: "Evian Sans Condensed SemiBold-08af";
  font-weight: 600;
}

h2 {
  margin: 0px 0 7px;
  color: #007bc1;
  font-size: 18px;
  font-family: "EvianSansSemiBold-52d8";
  font-weight: 600;
}

/* ===============================
   INPUTS
================================ */

input,
.comment-box {
  width: 70%;
  padding: 7px;
  margin: 6px 0;

  border-radius: 30px;
  border: 1px solid #f3a6b4;
  text-align: center;
  outline: none;

  font-family: "Geomanist-Regular";
  font-weight: 400;
}

/* COMMENT behaves like input */
.comment-box {
  height: 18px;
  line-height: 20px;
  overflow: hidden;
}

/* ===============================
   RSVP
================================ */

.rsvp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
}

.rsvp-label {
  font-size: 32px;
  color: #007bc1;
  font-family: "EvianSansSemiBold-52d8";
  font-weight: 600;
}

.rsvp-options {
  display: flex;
  gap: 14px;
}

.rsvp-options input {
  display: none;
}

.rsvp-options label {
  padding: 6px 18px;
  border: 2px solid #f3a6b4;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #f3a6b4;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rsvp-options input:checked + label {
  background: #f4a7b9;
  color: #fff;
  border-color: #f4a7b9;
}

/* ===============================
   BUTTON
================================ */

button {
  margin-top: 12px;
  background: #f4a7b9;
  border: none;
  padding: 12px 44px;
  border-radius: 40px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;

  font-family: "Geomanist-Regular";
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */

*{
  box-sizing: border-box;
}

@media (max-width: 600px) {

   html, body{
    width: 100%;
    height: 100%;
    overflow-x: hidden;   /* left-right scroll band */
  }

  body::before{
    content: "";
    position: fixed;      /* ✅ screen ke hisaab se fix */
    inset: 0;
    width: 100vw;
    height: 100vh;

    background-image: url("images/background.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 120%;  /* 110-140% try kar sakte ho */

    z-index: -1;
  }

  .overlay-form{
    width: 92vw;
    max-width: 92vw;
    padding: 0 14px;
    margin-top: -50px;
  }

  h1{
    font-size: 42px;
    letter-spacing: 2px;
  }

  h2{
    font-size: 20px;
    margin: 6px 0 10px;
  }

  input{
    width: 80%;
    padding: 6px 12px;
    font-size: 16px;
    border-width: 2px;
  }

  .rsvp{
    gap: 12px;
    margin: 10px 0;
  }

  .rsvp-label{
    font-size: 36px;
  }

  .rsvp-options label{
    /*padding: 10px 22px;*/
    font-size: 16px;
    border-width: 2px;
  }

  button{
    padding: 16px 60px;
    font-size: 16px;
  }
}

