/* ===================== GLOBAL ===================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f7f8fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

/* ===================== HEADERS ===================== */
.headline {
    font-size: 2em;
    margin-bottom: 30px;
}

/* ===================== PLAN CARDS ===================== */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.plan-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    position: relative;
    transition: transform 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card.featured {
    border: 2px solid #0b8cd9;
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #0b8cd9;
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8em;
}

.price {
    font-size: 1.8em;
    color: #0b8cd9;
    margin: 10px 0;
}

.lines {
    font-weight: bold;
    margin-bottom: 5px;
}

.per-line {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.desc {
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* ===================== BUTTON ===================== */
.button {
    display: inline-block;
    background: #0b8cd9;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.button:hover {
    background: #0975b8;
}

.button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ===================== CHECKOUT ===================== */
.checkout-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    text-align: left;
}

.checkout-card h2 {
    margin-top: 0;
    font-size: 1.8em;
    text-align: center;
}

.plan-summary {
    margin-bottom: 30px;
    font-size: 1em;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
}

/* Limit max width for single-row input fields */
.form-group input[type="text"],
.form-group input[type="password"] {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.checkout-card form {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 10px;
}

/* ✅ Email + Password Matching Inline Checks */
.inline-checkmark {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: green;
    font-size: 1.2em;
    display: none;
}

.relative {
    position: relative;
}

/* 👥 Email Fields Side-by-Side */
.row-2col {
    display: flex;
    gap: 10px;
    width: 100%;
}

.row-2col .form-group {
    flex: 1;
    min-width: 0;
}

.row-2col input[type="email"] {
    width: 100%;
    box-sizing: border-box;
}

/* 🔐 Password Strength Meter */
#password-strength {
    margin-top: 10px;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9em;
}

#password-strength p {
    margin: 0 0 6px;
    font-weight: bold;
    color: #333;
}

#password-strength ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#password-strength li {
    margin-bottom: 4px;
    color: #999;
    font-size: 0.95em;
}

#password-strength li.valid {
    color: green;
    font-weight: 600;
}

/* 🧾 Section Headings */
.section-heading {
    font-size: 1.1em;
    margin: 30px 0 15px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

/* ===================== PASSWORD TOGGLE ===================== */
.form-group.password-wrapper {
    position: relative;
}

.form-group.password-wrapper input[type="password"] {
    padding-right: 60px;
}

.password-toggle-text {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    color: #0077cc;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

/* ===================== CREDIT CARD ROW ===================== */
.payment-row.underline-style {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.payment-row.underline-style input {
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 10px 5px;
    font-size: 1em;
    border-radius: 0;
    background: transparent;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    flex-shrink: 1;
}

.payment-row.underline-style input:focus {
    outline: none;
    border-bottom-color: #0b8cd9;
}

/* Input widths */
.checkout-card input#cardNumber {
    flex: 1 1 auto;
    min-width: 180px;
}

.checkout-card input#expDate {
  flex: 0 0 65px;
  max-width: 65px;
  width: 65px;
}

.checkout-card input#cvv,
.checkout-card input#zip {
  flex: 0 0 60px;
  max-width: 60px;
  width: 60px;
}

/* Responsive Stacking */
@media (max-width: 600px) {
    .row-2col {
        flex-direction: column;
    }

    .checkout-card .payment-row.underline-style {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-card .payment-row.underline-style input {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===================== SUCCESS PAGE ===================== */
.checkout-card ul {
    text-align: left;
    margin-top: 1em;
}

.checkout-card ul li {
    padding: 4px 0;
    font-size: 1em;
}

.success-container {
    background: white;
    max-width: 600px;
    width: 90%;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    margin: 80px auto;
}

.success-container h1 {
    color: #16a34a;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-container p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.success-container ul {
    text-align: left;
    padding: 0;
    list-style: none;
    margin: 1rem 0;
}

.success-container ul li {
    margin-bottom: 0.5rem;
}

.green-button {
    display: inline-block;
    background: #16a34a;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 2rem;
    transition: background 0.3s ease;
}

.green-button:hover {
    background: #15803d;
}

/* Checkout Page Card Fields */

.card-label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  font-size: 0.95em;
  color: #333;
}

.card-input-wrapper {
  position: relative;
}

.card-input-wrapper input {
  width: 100%;
  padding-right: 50px; /* Room for the icon */
}

.card-logo {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.card-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Label above Credit Card */
.input-label {
  display: block;
  font-size: 0.85em;
  color: #555;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Tighter control for short fields */
.tiny-wrapper {
  display: flex;
  flex-direction: column;
  flex: 0 0 60px;
  max-width: 60px;
  width: 60px;
}

.tiny-wrapper input {
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  padding: 10px 5px;
  font-size: 1em;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.tiny-wrapper input:focus {
  border-bottom-color: #0b8cd9;
  outline: none;
}

.accepted-text {
  font-weight: normal;
  font-size: 0.95em;
  color: #555;
  margin-left: 8px;
  display: inline;
}

.accepted-logos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.accepted-logos img {
  height: 18px;
  vertical-align: middle;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.accepted-logos img:hover {
  opacity: 1;
}