body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-image: url('../img/snowflake_background.png'); /* your image path */
    background-size: cover; /* makes it fill the screen */
    background-repeat: no-repeat; /* prevents tiling */
    background-position: center center; /* centers the image */
    background-attachment: fixed; /* makes it stay still while scrolling */
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    max-width: 40%;
    height: auto;
}

h1 {
    font-family: 'Playfair Display', serif;
    color: hsl(1.07deg 68.29% 48.24%);
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    color: #555;
    font-size: 1.2em;
    margin-bottom: 30px;
}

p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

.features {
    text-align: left;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    color: #333;
}

.feature-item span {
    font-size: 1.5em;
    margin-right: 5px;
    color: hsl(1.07deg 68.29% 48.24%);
}

h3 {
    color: hsl(125.73deg 97.52% 31.57%);
    text-align: left;
}

.question-group {
    text-align: left;
    margin-bottom: 30px;
    position:relative;
}

.question-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.question-group input[type="checkbox"],
.question-group input[type="radio"] {
    margin-right: 10px;
}

.question-group input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #1f1f1f;
    border-radius: 4px;
    font-size: 1em;
    margin-top: 5px;
}

.form-section {
    text-align: left;
}

.form-section h3 {
    color: hsl(125.73deg 97.52% 31.57%);
    margin-top: 0;
    margin-bottom: 10px;
}

.form-section p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section textarea {
    width: calc(100% - 22px);
    padding: 12px;
    border: 1px solid #1f1f1f;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
}

.form-section textarea {
    min-height: 80px;
    resize: vertical;
}

.form-section input::placeholder,
.form-section textarea::placeholder {
    color: #aaa;
}

.submit-button {
    background-color: #F39C12;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: auto;
}

.submit-button:hover {
    background-color: #E67E22;
}

.holly-jolly-logo {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    color: hsl(1.07deg 68.29% 48.24%);
    line-height: 0.9;
    margin-top: 15px;
}

.holly-jolly-logo span.and {
    font-size: 0.5em;
    display: block;
    color: #555;
    margin: -5px 0;
}

.holly-jolly-logo span.hallmark {
    font-size: 1em;
    display: block;
    color: hsl(1.07deg 68.29% 48.24%);
}

.header-content {
    margin-bottom: 20px;
}

.error-text {
    color: #c62828;
    font-size: 0.9rem;
    min-height: 18px;
    position: absolute;
    left: 0;
    bottom: -19px;
}

.form-disabled {
    pointer-events: none; /* prevent interactions */
}

.submit-button:disabled {
  cursor: not-allowed;
}

/* hidden loader element */
.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: rgba(255,255,255,0.95);
    animation: spin 0.8s linear infinite;
    visibility: hidden;
}

/* when active, show */
.submit-button.loading { display: flex;}
.submit-button.loading .btn-loader { visibility: visible; display: inline-block;}

/* spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.thankyou-page img {
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.thankyou-page h2 {
    color: #008000;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.thankyou-page h2 span {
    color: #d62828;
    font-size: 1.7rem;
}

.thankyou-page p {
    max-width: 700px;
    margin: 10px auto;
    line-height: 1.6;
    color: #333;
}

.thankyou-page strong {
    font-weight: 700;
}

.thankyou-page .highlight {
    color: #008000;
    font-weight: bold;
    margin-top: 20px;
}

.thankyou-page .email {
    color: #d62828;
    font-weight: bold;
    margin-top: 10px;
}

.thankyou-page .email a {
    color: #d62828;
    text-decoration: none;
}

.thankyou-page .email a:hover {
    text-decoration: underline;
}

span{
    display: block;
}

/* ========== Facebook Section (Reusable) ========== */
.facebook-section {
  display: flex;
  justify-content: center;
}

.facebook-content {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Open Sans', sans-serif;
  flex-wrap: wrap;
  text-align: center;
}

/* Facebook icon – smaller, aligned properly */
#facebookSection .facebook-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto; /* centers horizontally */
  border-radius: 3px;
}

.facebook-text {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.facebook-link {
  color: #1877f2;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.facebook-link:hover {
  text-decoration: underline;
  color: #145dbf;
}

/* Container for both buttons */
#actionRow {
  display: flex;
  align-items: center;
  justify-content: space-between; /* centers horizontally */
  gap: 15px; /* space between button and Facebook section */
  flex-wrap: wrap; /* ensures responsiveness */
  margin-top: 20px;
}

/* Submit button styling (already in your CSS, but make sure it’s inline-friendly) */
.submit-button {
  background-color: #F39C12;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.submit-button:hover {
  background-color: #E67E22;
}

/* Facebook section styling */
#facebookSection {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  transition: background-color 0.3s ease;
}

/* Facebook icon */
#facebookSection .facebook-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Facebook text & link */
#facebookSection .facebook-text {
  font-size: 1em;
  color: #333;
  margin: 0;
}

#facebookSection .facebook-link {
  color: #1877f2;
  font-weight: bold;
  text-decoration: none;
}

#facebookSection .facebook-link:hover {
  text-decoration: underline;
}
.form-group {
    margin-bottom: 25px;
    position: relative;
}
.submit-button .btn-loader{
    margin-left: 10px;
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
  #actionRow {
    flex-direction: column;
    align-items: stretch;
  }

  #facebookSection {
    justify-content: center;
  }
}



@media (max-width: 600px) {
    body.thankyou-page {
        padding: 20px 15px;
    }

    .thankyou-page img {
        max-width: 90%;
    }

    .thankyou-page h2 {
        font-size: 1.3rem;
    }
    .container {
    padding: 15px;
    }
    #facebookSection .facebook-text {
    font-size: 14px;
    }
    #facebookSection {
    padding: 0;
    }
    #facebookSection .facebook-icon {
    width: 25px;
    height: 25px;
    }
}