/* 1. The full-height vertical stack */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

*
{
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
}

/* 2. The Centering Wrapper */
.container {
  max-width: 600px; /* Adjust based on your design preference */
  margin-left: auto;
  margin-right: auto;
  /*padding: 0 1rem;   /* Prevents content from touching edges on mobile */
  width: 100%;       /* Ensures it doesn't shrink on smaller screens */
  text-align: center; /* Centers text and inline elements */
}

/* 3. Sticky Header (similar to the inspected element) */
.sticky-header {
  /*position: sticky;*/
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  /*border-bottom: 1px solid #eee;*/
}

.title {
    font-size: 2.3rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;

}

.subtitle {
    font-size: 1.6rem;
    margin-top: 0.25rem;
    margin-bottom: 35px;

}

.footer {
    font-size: 0.875rem;
    margin-top: 10px;
}

.container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trial-btn {
  background-color: #E5962D;
  color: white;
  border: none;
  padding: 25px 40px;
  font-size: 26px;
  cursor: pointer;

  text-decoration: none; /* Remove underline from links */
  color: white; /* Ensure text color is white for links */
  display: inline-block; /* Allow padding and other styles to apply to links */

  margin-top: 20px;
}

.trial-btn:hover {
    background-color: #8f5d1b;
}

.trial-text {
  margin-top: 10px;
  /*font-size: 1.2rem;*/
}

ul, ol {
    display: inline-block;
    text-align: left;
}

.two-column {
  display: flex;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.left-column {
  flex: 1;
  font-size: 1.25rem;
  /*margin-left: 75px;*/
}

.left-column .container {
  text-align: left;
}

.right-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.checkout-panel {
  width: 100%;
  max-width: 520px;
  background-color: #f8f6f1;
  border: 1px solid #ded6c7;
  border-radius: 14px;
  padding: 1rem;
  box-sizing: border-box;
  margin-top: 20px;
}

.checkout-status,
.checkout-error {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: left;
}

.checkout-status {
  color: #5f584c;
}

.checkout-error {
  color: #8a1c1c;
  background-color: #f8dddd;
  border: 1px solid #d8aaaa;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

/* Order summary */
.order-summary {
  margin-bottom: 1.25rem;
}

.order-summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.order-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.order-detail {
  font-size: 0.8rem;
  color: #7a7265;
  margin-bottom: 0.5rem;
}

.order-detail span {
  font-size: 0.8rem;
}

.order-divider {
  border-top: 1px solid #ded6c7;
  margin: 0.6rem 0;
}

.order-total {
  font-weight: 700;
}

/* Form elements */
#payment-form {
  display: none;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: 'Libre Baskerville', serif;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #635bff;
  box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.2);
}

.form-input.error {
  border-color: #8a1c1c;
}

.field-error {
  color: #8a1c1c;
  font-size: 0.8rem;
  min-height: 1.2em;
  margin-top: 0.25rem;
}

#payment-element {
  margin-top: 0.5rem;
}

.submit-btn {
  width: 100%;
  margin-top: 1.25rem;
  padding: 14px;
  font-size: 1rem;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  color: #fff;
  background-color: #E5962D;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.submit-btn:hover:not(:disabled) {
  background-color: #8f5d1b;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
  }

  .right-column {
    width: 100%;
  }
}
