/**
 * Payment Wizard Styles
 *
 * Custom styles that complement Bootstrap 5.
 * Consider migrating to TailwindCSS for a utility-first approach.
 */

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
    min-height: 100vh;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Balance box */
.balance-box {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Contact info table */
.contact-info-table th {
    font-size: 0.75rem;
    font-weight: 600;
    width: 40%;
}

.contact-info-table td {
    font-size: 0.9rem;
}

/* Progress bar items */
.list-group-horizontal .list-group-item {
    min-width: 90px;
    padding: 0.5rem;
}

/* Form sections */
.form-section {
    border-radius: 0.375rem;
    padding: 1rem;
}

/* Payment box */
.payment-box {
    border: 1px solid #dee2e6;
}

/* Error text */
.error-text {
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .list-group-horizontal .list-group-item {
        min-width: 60px;
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .list-group-horizontal .list-group-item span {
        font-size: 0.65rem !important;
    }
}

/* Button styles */
.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* Terms modal */
.modal-body {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Collect.js iframe container styling */
#ccnumber,
#ccexp,
#cvv {
    min-height: 38px;
}

/* Invalid state for checkboxes */
.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid ~ .form-check-label {
    color: #dc3545;
}
