/* Shared styling for the NCSA payment pages (checkout, monthly, quarterly,
   and their -beta variants). Page-specific bits live in each HTML file. */

body {
    font-family: "Archivo Narrow", Arial, sans-serif;
    margin: 0; padding: 0; color: #000; background: #172943;
    font-size: 16px; line-height: 1.6;
}
.site-header {
    background: #096464; padding: 20px 40px;
    display: flex; align-items: center; gap: 16px;
}
.site-header img { height: 48px; width: auto; }
.site-header .title {
    color: white; font-family: "Archivo Black", sans-serif;
    font-size: 1.25em; letter-spacing: 0.01em;
}
.container { max-width: 600px; margin: 30px auto; padding: 0 20px; }
h1 {
    font-family: "Archivo Black", sans-serif;
    font-size: 1.8em; color: #ffffff; margin-top: 0; margin-bottom: 20px;
}
strong { font-weight: 700; }
.card {
    background: #ffffff; border-radius: 4px; padding: 20px;
    margin-bottom: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.row { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
.row label { width: 150px; font-weight: bold; }
.row select, .row input[type=text], .row input[type=email] {
    flex: 1; padding: 8px; font-size: 1em; border: 1px solid #ccc; border-radius: 4px;
}

.breakdown { font-family: monospace; background: #f3f3f3; padding: 12px; border-radius: 4px; }
.breakdown .line { display: flex; justify-content: space-between; padding: 2px 0; }
.breakdown .total {
    font-weight: bold; border-top: 1px solid #999;
    margin-top: 6px; padding-top: 6px; color: #096464;
}
.breakdown .subtle { color: #666; font-style: italic; }
.breakdown .excluded {
    font-size: 0.85em; color: #666; margin-top: 6px;
    padding-top: 6px; border-top: 1px dashed #ccc;
}

#pay-buttons { margin-top: 16px; display: flex; gap: 12px; }
#pay-buttons button { flex: 1; }
#submit-button, #zelle-button {
    color: white; padding: 14px 20px; border: none; cursor: pointer;
    font-size: 1.1em; border-radius: 4px;
    font-family: "Archivo Black", sans-serif; letter-spacing: 0.03em;
    text-transform: uppercase;
}
#submit-button { background: #20a5a5; }
#submit-button:hover:not(:disabled) { background: #096464; }
#zelle-button { background: #6c2eb8; }
#zelle-button:hover:not(:disabled) { background: #4a1d80; }
#submit-button:disabled, #zelle-button:disabled { background: #aaa; cursor: not-allowed; }
#error-message { color: #c00; margin-top: 10px; font-weight: bold; }
.zelle-hint { margin-top: 8px; font-size: 0.85em; color: #666; text-align: center; }

/* Flatpickr (drop-in page only, but harmless elsewhere) */
.flatpickr-calendar { z-index: 10000; }
.flatpickr-day.past-date:not(.flatpickr-disabled) { color: #c00; background: #fff0f0; }
.flatpickr-day.past-date:not(.flatpickr-disabled):hover { background: #ffd8d8; }
.flatpickr-day.past-date.selected,
.flatpickr-day.past-date.selected:hover {
    background: #c00; border-color: #c00; color: #fff;
}
/* Trial form preferred days (Sat/Sun) — beginner-focused, gentle nudge */
.flatpickr-day.prefer-day:not(.flatpickr-disabled) {
    background: #d9f2e9; color: #096464; font-weight: 600;
}
.flatpickr-day.prefer-day:not(.flatpickr-disabled):hover {
    background: #b3e5cb;
}
.flatpickr-day.prefer-day.selected,
.flatpickr-day.prefer-day.selected:hover {
    background: #20a5a5; color: #fff;
}

/* Confirmation pages (success.html, zelle.html) */
.amount {
    font-size: 2.5em; font-weight: bold; color: #20a5a5;
    text-align: center; margin: 16px 0;
}
.detail-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid #eee;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: #666; }
.detail-row .value { font-weight: 600; }
.home-link {
    display: inline-block; margin-top: 24px; padding: 14px 28px;
    background: #20a5a5; color: white; text-decoration: none;
    border-radius: 4px; font-family: "Archivo Black", sans-serif;
    letter-spacing: 0.03em; text-transform: uppercase;
}
.home-link:hover { background: #096464; }

/* Menu landing page — solid teal buttons on the dark navy body,
   styled to match the JOIN US call-to-action on the main NCSA site. */
a.menu-link {
    display: block; text-decoration: none; color: white;
    background: #20a5a5; border-radius: 4px;
    padding: 22px 24px; margin-bottom: 20px; text-align: center;
    font-family: "Archivo Black", sans-serif;
    text-transform: uppercase; letter-spacing: 0.04em;
    font-size: 1.3em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: background 0.15s, transform 0.1s;
}
a.menu-link:hover, a.menu-link:focus {
    background: #096464; transform: translateY(-1px); outline: none;
}
a.menu-link .desc {
    display: block; margin-top: 6px;
    font-family: "Archivo Narrow", Arial, sans-serif;
    font-size: 0.72em; font-weight: normal;
    text-transform: none; letter-spacing: 0;
    opacity: 0.9;
}

/* Agreements block */
.agreements details { margin-bottom: 8px; }
.agreements summary {
    cursor: pointer; padding: 8px 10px; background: #e8eef5;
    border: 1px solid #b8c4d5; border-radius: 4px;
    font-weight: bold; user-select: none; color: #096464;
}
.agreements summary:hover { background: #d5e0ef; }
.agreements details[open] summary { border-radius: 4px 4px 0 0; }
.agreements .body {
    padding: 12px; border: 1px solid #b8c4d5; border-top: none;
    border-radius: 0 0 4px 4px; background: #f5f7fa;
    font-size: 0.9em; line-height: 1.4;
}
.agreements .body ol, .agreements .body ul { padding-left: 20px; margin: 8px 0; }
.agreements .body li { margin-bottom: 4px; }
.agreement-check {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px;
    background: #e5f5f5; border: 1px solid #20a5a5; border-radius: 4px;
}
.agreement-check input { margin-top: 3px; }
.agreement-check label { cursor: pointer; }

@media (max-width: 500px) {
    .site-header { padding: 16px 20px; }
    .site-header .title { font-size: 1em; }
    .container { padding: 0 12px; margin-top: 20px; }
    h1 { font-size: 1.4em; }
    .card { padding: 16px; }
    .row { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 16px; }
    .row label { width: auto; }
}
