/* Simple classic layout: background image, one centred white form card. */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: #333;
    background-color: #1f3a5f;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page {
    min-height: 100vh;
    padding: 40px 16px;
}

.card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 28px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.logo { text-align: center; margin-bottom: 14px; }
.logo img { max-width: 200px; max-height: 80px; }

h1 {
    font-size: 21px;
    text-align: center;
    color: #1f3a5f;
    margin: 0 0 18px;
}

label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin: 14px 0 5px;
}
label small { font-weight: normal; color: #777; }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="date"], select {
    width: 100%;
    padding: 9px 10px;
    font-size: 15px;
    border: 1px solid #aaa;
    border-radius: 3px;
    background: #fff;
}
input:focus, select:focus { outline: 2px solid #3b78c2; border-color: #3b78c2; }

input[type="file"] { width: 100%; font-size: 14px; }

.row { display: flex; gap: 12px; }
.row > div { flex: 1; min-width: 0; }

fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 18px 0 0;
    padding: 6px 14px 14px;
}
legend { font-weight: bold; padding: 0 6px; }

label.check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: normal;
    margin: 10px 0 0;
}
label.check input { margin-top: 3px; }

.btn {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: 11px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #2a6bb8;
    border: 1px solid #1f5592;
    border-radius: 3px;
    cursor: pointer;
}
.btn:hover { background: #1f5592; }
.btn:disabled { background: #8aa9cf; border-color: #8aa9cf; cursor: default; }
.btn-small { width: auto; margin: 0; padding: 9px 16px; font-size: 14px; }

.inline { display: flex; gap: 8px; }

.alert {
    padding: 10px 12px;
    border-radius: 3px;
    margin: 0 0 14px;
    font-size: 14px;
}
.alert.error { background: #fbe9e9; border: 1px solid #e3a5a5; color: #8a1f1f; }
.alert.success { background: #e8f5e9; border: 1px solid #9ccc9f; color: #1e5e22; }

.hint { font-size: 13px; color: #666; margin: 6px 0; }
.secure { font-size: 12px; color: #888; text-align: center; }

.links { text-align: center; font-size: 14px; margin: 18px 0 0; line-height: 1.7; }
a { color: #2a6bb8; }

.steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    font-size: 12px;
    color: #999;
}
.steps li { flex: 1; text-align: center; }
.steps span {
    display: block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    font-weight: bold;
}
.steps li.active { color: #1f3a5f; font-weight: bold; }
.steps li.active span { background: #2a6bb8; }
.steps li.done span { background: #4caf50; }

.summary { width: 100%; border-collapse: collapse; margin: 18px 0 6px; }
.summary td { padding: 7px 0; border-bottom: 1px solid #eee; }
.summary td:last-child { text-align: right; }
.summary .total td { font-weight: bold; font-size: 16px; border-bottom: none; }

.discount-applied {
    display: flex;
    justify-content: space-between;
    padding: 9px 12px;
    background: #e8f5e9;
    border: 1px solid #9ccc9f;
    border-radius: 3px;
    font-size: 14px;
}

#payment-element { margin-top: 14px; min-height: 60px; }

.cf-turnstile { margin-top: 16px; }

.footer { text-align: center; color: #fff; font-size: 12px; margin-top: 18px; text-shadow: 0 1px 2px #000; }

@media (max-width: 480px) {
    .card { padding: 22px 16px; }
    .row { flex-direction: column; gap: 0; }
}
