/* Custom styles for the Stripe payment form */
.payment-container {
    max-width: 460px;
    margin: 1rem auto;
    padding: 1.6rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.payment-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.payment-form .form-control {
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.payment-form .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Stripe Card Element container – matches Bootstrap form-control look */
#stripe-card-element {
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#stripe-card-element.StripeElement--focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

#stripe-card-element.StripeElement--invalid {
    border-color: #dc3545;
}

#stripe-card-errors {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.payment-form .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.payment-form .alert {
    margin-bottom: 1.5rem;
}

/* Stripe badge / trust indicator */
.stripe-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.stripe-badge svg {
    margin-right: 0.3rem;
}

/* Admin records table */
.payment-records {
    margin-top: 2rem;
}

.payment-records table {
    width: 100%;
    border-collapse: collapse;
}

.payment-records th,
.payment-records td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.payment-records th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Admin settings page */
.payment-settings {
    max-width: 800px;
    margin: 2rem 0;
}

.payment-settings .form-table th {
    width: 200px;
}

.payment-settings .description {
    color: #666;
    font-style: italic;
}
