.payment-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 10px 16px 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.payment-page h1 {
    margin: 0 0 8px;
    font-size: 1.9rem;
    text-align: center;
    color: #4a2d7f;
}

.payment-page > p.intro {
    margin: 0 0 18px;
    font-size: 0.98rem;
    color: #555;
    text-align: center;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.payment-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px 24px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
    border-top: 4px solid #32a6b8;
    display: flex;
    flex-direction: column;
}

.payment-section.payment-section--right {
    border-top-color: #4a2d7f;
}

.section-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
}

/* Styled 3% convenience fee note */
.payment-section-note {
    background: rgba(50, 166, 184, 0.12);
    border-left: 4px solid #32a6b8;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.90rem;
    color: #333;
    margin: 0 0 18px;
    line-height: 1.45;
    font-weight: 500;
}

.form-row {
    margin-bottom: 12px;
}

.form-row label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #444;
}

.required-asterisk {
    color: #c53030;
    margin-left: 2px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #d4d9e5;
    box-sizing: border-box;
    background: #fafbff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-row textarea {
    min-height: 70px;
    max-height: 110px;
    height: 90px;
    resize: none;
    overflow-y: auto;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #32a6b8;
    box-shadow: 0 0 0 1px rgba(50,166,184,0.25);
    background: #ffffff;
}

.form-row-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-row-inline .form-row {
    flex: 1 1 0;
    margin-bottom: 0;
}

/* Amount styling with $ */
.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper .amount-prefix {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #777;
    pointer-events: none;
}

.amount-input-wrapper .amount-input {
    padding-left: 22px;
}

/* iFields iframes */
.ifield-frame {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #d4d9e5;
    background: #fafbff;
    box-sizing: border-box;
}

.status-message {
    font-size: 0.9rem;
    min-height: 1.2em;
    margin-top: 10px;
    white-space: pre-line;
}

.status-message.error {
    color: #b00020;
}

.status-message.success {
    color: #0b7a2f;
}

.payment-footer {
    margin-top: auto;
    padding-top: 12px;
}

.payment-footer button {
    padding: 11px 16px;
    font-size: 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #4a2d7f;
    color: #ffffff;
    width: 100%;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
    box-shadow: 0 6px 14px rgba(74,45,127,0.25);
}

.payment-footer button:hover:not(:disabled) {
    background: #3b2267;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(74,45,127,0.3);
}

.payment-footer button:disabled {
    opacity: 0.65;
    cursor: default;
    box-shadow: none;
}

/* Spinner */
#loading {
    text-align: center;
    margin-top: 14px;
    font-size: 0.9rem;
    color: #555;
}

#loading .spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #d4d9e5;
    border-top: 4px solid #32a6b8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 800px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }
    .payment-section {
        padding: 18px 16px 20px;
    }
}

@media (max-width: 480px) {
    .payment-page {
        margin: 20px auto 32px;
        padding: 0 10px 24px;
    }
}

/* Confirmation page styles */
.winners-confirmation {
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.winners-confirmation-title {
    font-size: 2.1rem;
    margin-bottom: 10px;
    color: #4a2d7f;
}

.winners-confirmation-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 28px;
}

.winners-confirmation-card {
    display: inline-block;
    text-align: left;
    background: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-top: 4px solid #32a6b8;
    min-width: 280px;
}

.winners-confirmation-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.98rem;
    margin-bottom: 8px;
}

.winners-confirmation-row-total .label,
.winners-confirmation-row-total .value {
    font-weight: 700;
}

.winners-confirmation-row .label {
    font-weight: 600;
    color: #444;
}

.winners-confirmation-row .value {
    font-weight: 500;
    color: #222;
}

.winners-confirmation-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 18px;
}

@media (max-width: 600px) {
    .winners-confirmation {
        margin: 40px 16px;
    }
    .winners-confirmation-card {
        width: 100%;
    }
}
