/* Payments page styles */
.hidden {
    display: none;
}

.payments-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

/* Light-background sections: force dark text so they work on any body theme */
.payment-summary,
.card-form-section,
.yoco-section,
.success-section,
.cancelled-section,
.failed-section {
    color: #111827;
}

/* Payment Summary */
.payment-summary {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}
.payment-summary h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}
.summary-table {
    width: 100%;
    border-collapse: collapse;
}
.summary-table td {
    padding: 6px 0;
    font-size: 0.95rem;
}
.summary-table td:first-child {
    color: #6b7280;
    width: 110px;
}
.summary-table td:last-child {
    font-weight: 600;
}

/* Card Form */
.card-form-section {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}
.card-form-section h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
}
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--trim-color, #42642c);
    box-shadow: 0 0 0 2px rgba(66, 100, 44, 0.15);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* Pay Button */
.btn-pay {
    width: 100%;
    padding: 14px;
    background: var(--trim-color, #42642c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.btn-pay:hover {
    background: var(--trim-color-hover, #5f8f3f);
}
.btn-pay:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Errors */
.payment-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* Yoco Section */
.yoco-section {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}
.yoco-section h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
}
.yoco-section p {
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Coming Soon */
.coming-soon-section {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    color: #111827;
}
.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.coming-soon-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.coming-soon-section p {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Success */
.success-section {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 24px;
}
.success-icon {
    width: 48px;
    height: 48px;
    background: #16a34a;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.success-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 12px;
}
.success-section p {
    color: #374151;
    margin: 4px 0;
}

/* Cancelled */
.cancelled-section {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-bottom: 24px;
}
.cancelled-icon {
    width: 48px;
    height: 48px;
    background: #d97706;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.cancelled-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
}
.cancelled-section p {
    color: #374151;
    margin: 4px 0;
}

/* Failed */
.failed-section {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 24px;
}
.failed-icon {
    width: 48px;
    height: 48px;
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.failed-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 12px;
}
.failed-section p {
    color: #374151;
    margin: 4px 0;
}

/* Security Notice */
.security-notice {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
}
.security-notice p {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

/* Back Button */
.back-button {
    padding: 12px 32px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}
.back-button:hover {
    background: #333;
}
