body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 40px; background-color: #f4f7f9; }
.container { max-width: 700px; margin: auto; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; color: #333; }
input[type="text"], input[type="email"], input[type="date"], select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
button { padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; }
button:hover { background-color: #0056b3; }
.error { display: none; margin-top: 20px; padding: 15px; border-radius: 4px; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.loader { display: none; margin-top: 20px; text-align: center; font-size: 18px; color: #555; }
.form-section { display: none; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; }
.back-button, .clear-button { background-color: #6c757d; }
.back-button:hover, .clear-button:hover { background-color: #5a6268; }
.selection-info { padding: 15px; margin-bottom: 20px; background-color: #f8f9fa; border-left: 5px solid #007bff; border-radius: 4px; }
.cost-display { font-size: 1.2em; font-weight: bold; color: #28a745; }
.summary-label { font-weight: 600; }
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.subject-card { border: 1px solid #dee2e6; border-radius: 4px; padding: 15px; background-color: #fff; }
.subject-name { font-weight: bold; margin-bottom: 10px; }
.subject-details span { display: block; font-size: 0.9em; color: #555; }
.summary-payment-breakdown { margin-top: 20px; padding-top: 20px; border-top: 1px solid #dee2e6; }
.summary-payment-breakdown .summary-item { display: flex; justify-content: space-between; padding: 5px 0; }
.discount-applied { color: #dc3545; }
.modal-overlay { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 30px; border: 1px solid #888; border-radius: 8px; width: 90%; max-width: 500px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.modal-close { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; border: none; background: none; cursor: pointer; }
.modal-close:hover, .modal-close:focus { color: black; text-decoration: none; }
.modal-amount { font-size: 1.8em; font-weight: bold; color: #28a745; text-align: center; margin: 15px 0; }
.json-modal-content { background-color: #2d3748; color: #f7fafc; border: 1px solid #4a5568; }
.json-modal-content h2 { color: #a0aec0; }
.json-modal-content .modal-close { color: #a0aec0; }
.json-modal-content .modal-close:hover { color: #ffffff; }
pre#json_debug_output { background-color: #1a202c; color: #90cdf4; padding: 15px; border-radius: 6px; white-space: pre-wrap; word-wrap: break-word; max-height: 40vh; overflow-y: auto; font-family: 'Courier New', Courier, monospace; font-size: 0.9em; }
.billing-form-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid #dee2e6; }
.billing-form-section h4 { margin-top: 0; margin-bottom: 15px; color: #343a40; }
.payment-modal-content { width: 95%; max-width: 800px; height: 90vh; padding: 15px; display: flex; flex-direction: column; }
.payment-modal-content h2 { margin-bottom: 10px; flex-shrink: 0; text-align: center; }
.iframe-container { flex-grow: 1; overflow: hidden; border: 1px solid #ccc; border-radius: 4px; position: relative; }
#payment_iframe { width: 100%; height: 100%; display: none; }
pre.debug-pre {
    background-color: #fff3f3;
    padding: 10px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #f5c6cb;
}