/* style.css */

/* --- Add @font-face rule at the top --- */
@font-face {
    font-family: 'Kunstler Script'; /* The name you use in your styles (MUST MATCH SVG) */
    src: url('../fonts/VIVALDII.woff') format('woff'); /* Path to your font file */
    /* Add other formats like woff2 if you have them for better compatibility/performance: */
    /* src: url('../fonts/kunstlerscript.woff2') format('woff2'),
           url('../fonts/kunstlerscript.woff') format('woff'); */
    font-weight: normal; /* Adjust if the font file is bold, etc. */
    font-style: normal;  /* Adjust if the font file is italic, etc. */
    font-display: swap; /* Improves perceived performance */
  }
  /* --- End @font-face rule --- */
  
  
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  html {
      scroll-behavior: smooth;
  }
  
  body {
      font-family: 'Open Sans', sans-serif;
      line-height: 1.7;
      color: #525234;
      background-color: #cec0a8; /* Beige background */
  }
  
  /* --- Headings --- */
  h1, h2, h3 {
      font-family: 'Playfair Display', serif;
      color: #525234;
      margin-bottom: 0.5em;
  }
  
  h1 {
    font-size: 2.5em;
  }
  
  h2{
      font-size: 2em;
      margin-bottom: 1em;
  }
  
  /* --- Hero Section --- */
  .hero {
      width: 100%;
      height: 100vh;
      background-image: url('../images/honsaja.png'); /* Ensure this path is correct */
      background-size: cover;
      background-position: center;
      position: relative;
  }
  
  .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  }
  
  #logo-container {
      max-width: 600px;
      width: 80%;
      text-align: center;
  }
  
  #logo {
      width: 100%;
      height: auto;
  }
  
  /* Specific style for the date in the hero */
  .hero .date {
      font-family: 'Open Sans', sans-serif;
      font-size: 1.2em;
      color: #F8EFE5 !important;
      margin-top: 10px;
      font-weight: bold;
  }
  
  /* Header RSVP Button */
  #rsvp-scroll-button-header {
      background-color: #c78d61; /* Subtle Orange */
      color: #F8EFE5;
      border: none;
      padding: 12px 25px;
      border-radius: 25px;
      cursor: pointer;
      font-size: 1em;
      transition: background-color 0.3s ease, transform 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: bold;
      margin-top: 1rem;
  }
  #rsvp-scroll-button-header:hover {
      background-color: #9d5824; /* Darker Orange on hover */
      transform: scale(1.05);
  }
  
  /* --- General Section Styles --- */
  section {
      max-width: 900px;
      margin: 40px auto;
      padding: 30px;
      background-color: #F8EFE5;
      border-radius: 12px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* --- Welcome Section (#content) --- */
  #content {
     margin-top: 40px;
  }
  #content .date {
      color: #525234;
      font-weight: bold;
      font-size: inherit;
      margin-top: 0;
  }
  .content-container{
      text-align: center;
  }
  
  /* --- Responsive Adjustments --- */
  @media (max-width: 768px) {
      section {
          width: 90%;
          padding: 20px;
          margin: 20px auto;
      }
       h1 { font-size: 2em; }
      h2{ font-size: 1.5em; }
  
      /* RSVP Form Mobile Adjustments */
       .person-rsvp-row {
          gap: 5px;
      }
      .person-rsvp-row input[name="names[]"] {
          min-width: 100px;
      }
      .attending-options {
          flex-basis: 100px;
          padding: 0 2px;
          justify-content: space-evenly;
      }
      .attending-options label {
          margin-right: 5px;
          font-size: 0.9em;
      }
       .attending-options input[type="radio"] {
          margin-right: 3px;
       }
       .names-header {
          padding-right: 35px;
       }
       .names-header label:last-child {
          flex-basis: 100px;
       }
      .remove-name {
          width: 28px;
          height: 28px;
          font-size: 1.1em;
      }
  }
  
  /* --- General Button Styles --- */
  button[type="submit"] {
      background-color: #c47335;
      color: #F8EFE5;
      border: none;
      padding: 12px 25px;
      border-radius: 25px;
      cursor: pointer;
      font-size: 1em;
      transition: background-color 0.3s ease, transform 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: bold;
  }
  button[type="submit"]:hover {
      background-color: #9d5824;
      transform: scale(1.05);
  }
  
  /* --- Info Section --- */
  .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-top: 20px;
  }
  .info-item {
      background-color: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .info-item h3 {
      margin-bottom: 0.5em;
       color: #c47335;
  }
  .info-item a {
      color: #c47335;
      text-decoration: none;
      font-weight: bold;
  }
  .info-item a:hover{
      text-decoration: underline;
  }
  .highlight {
      font-weight: bold;
      color: #c47335;
  }
  .venue-name, .time{
      font-weight: bold;
  }
  
  /* --- Gift Section --- */
  .registry-links { /* Kept in case you reintroduce it */
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 20px;
  }
  .registry-links a {
      color: #c47335;
      text-decoration: none;
      font-weight: bold;
      padding: 10px 15px;
      border: 2px solid #c47335;
      border-radius: 20px;
      transition: background-color 0.3s ease, color 0.3s ease;
  }
  .registry-links a:hover{
       background-color: #c47335;
       color: #F8EFE5;
  }
  .payment-options {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      gap: 20px;
      margin-top: 20px;
  }
  .payment-item {
      flex: 1 1 200px;
      background-color: #ffffff;
      padding: 15px;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      text-align: center;
  }
  .payment-item h3 {
      color: #c47335;
      margin-bottom: 8px;
  }
  .payment-item .highlight {
      font-size: 1.1em;
      font-weight: bold;
      color: #322621;
      word-break: break-all;
  }
  .payment-item h5 {
      color: #525234;
      margin-bottom: 5px;
      font-weight: normal;
  }
  .payment-item h5 .highlight {
       color: #525234;
       font-weight: bold;
  }
  
  /* --- RSVP Form --- */
  #rsvp-form {
      margin-top: 20px;
  }
  .form-group {
      margin-bottom: 15px;
  }
  
  /* General Input Styles */
  input, textarea, select {
      width: 100%;
      padding: 12px;
      margin-bottom: 15px;
      border: 1px solid #CAB69B;
      border-radius: 6px;
      font-family: inherit;
      background-color: #fff;
      min-height: auto;
      height: auto;
  }
  
  /* RSVP Form Specific Styles */
  #names-container {
      margin-bottom: 10px;
  }
  .names-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 8px;
      padding-right: 40px; /* Account for remove button space */
  }
  .names-header label:first-child {
      flex-grow: 1;
      padding-right: 10px;
  }
  .names-header label:last-child {
      flex-basis: 120px;
      text-align: center;
      flex-shrink: 0;
  }
  .person-rsvp-row {
      display: flex;
      gap: 10px;
      align-items: center;
      margin-bottom: 10px;
  }
  .person-rsvp-row input[name="names[]"] {
      flex-grow: 1;
      margin-bottom: 0;
      min-width: 50px;
  }
  .person-rsvp-row input { /* Override general input margin/width */
       margin-bottom: 0;
       width: auto;
  }
  
  .attending-options {
      flex-basis: 120px;
      flex-shrink: 0;
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 0 5px;
  }
  .attending-options label {
      display: inline-flex;
      align-items: center;
      margin-bottom: 0;
      font-weight: normal;
      cursor: pointer;
      color: #525234;
  }
  .attending-options input[type="radio"] {
      width: auto;
      margin-right: 5px;
      margin-bottom: 0;
      vertical-align: middle;
  }
  .attending-options span {
       vertical-align: middle;
  }
  .remove-name {
      background-color: #a94442;
      color: white;
      border: none;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2em;
      line-height: 1;
      transition: background-color 0.3s ease;
      flex-shrink: 0;
      padding: 0;
  }
  .remove-name:hover {
      background-color: #843534;
  }
  
  #add-name {
      background-color: #c47335;
      color: #F8EFE5;
      border: none;
      padding: 8px 15px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.9em;
      transition: background-color 0.3s ease;
      margin-bottom: 20px;
      display: inline-block;
  }
  #add-name:hover {
      background-color: #9d5824;
  }
  
  /* General input focus */
  input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #c47335;
    box-shadow: 0 0 5px rgba(196, 115, 53, 0.5);
  }
  
  /* General Label */
  label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
      color: #525234;
  }
  
  /* --- Footer --- */
  footer {
      text-align: center;
      padding: 20px;
      background-color: #ffffff;
      color: #525234;
      margin-top: 40px;
  }
  footer p{
       display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
  }
  
  /* --- Text Color Overrides --- */
  /* Heading Text - Very Dark Brown */
  #rsvp h2,
  #info h2,
  #gift h2,
  #program h2
  {
      color: #322621;
  }
  /* RSVP Form Specific Text Colors */
  #rsvp-form .form-group > label,
  #rsvp-form .names-header > label,
  #rsvp-form button[type="submit"]
  {
       color: #322621;
  }
  /* Ensure button text in header remains white */
  #rsvp-scroll-button-header span{
       color: #F8EFE5;
  }
  