/* Conference Payment Form Styles */

/* Brand colors live in these two variables so a single conference can be given its
   own accent without touching this file (see the Secondary branding setting). */
.confpay-payment-form {
    --confpay-accent: #1a237e;
    --confpay-accent-2: #3b5bdb;
}

/* Optional conference logo above the form */
.confpay-brand { text-align: center; margin-bottom: 20px; }
.confpay-brand img { max-height: 80px; max-width: 260px; height: auto; }


.confpay-payment-form {
    max-width: 780px;
    margin: 0 auto;
    font-family: inherit;
}

/* Notices */
.confpay-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}
.confpay-notice--login    { background: #f0f4ff; border-left: 4px solid var(--confpay-accent-2); }
.confpay-notice--error    { background: #fff0f0; border-left: 4px solid #e03131; color: #c92a2a; }
.confpay-notice--warning  { background: #fff9db; border-left: 4px solid #f59f00; }
.confpay-notice--info     { background: #f0f4ff; border-left: 4px solid var(--confpay-accent-2); font-size: 13px; margin-top: 8px; }

/* Period badge */
.confpay-period-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}
.confpay-period-dates { font-weight: 400; color: #555; margin-left: 6px; }

/* Fieldsets */
.confpay-fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    background: #fafafa;
}
.confpay-fieldset legend {
    font-weight: 700;
    font-size: 16px;
    padding: 0 8px;
    color: #222;
}
.confpay-fieldset--readonly { background: #f5f5f5; }

/* Row layouts */
.confpay-row { display: flex; gap: 16px; }
.confpay-row--2col > .confpay-field { flex: 1; }
@media (max-width: 560px) {
    .confpay-row--2col { flex-direction: column; }
}

/* Fields */
.confpay-field { margin-bottom: 16px; }
.confpay-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}
.confpay-field input[type=text],
.confpay-field input[type=email],
.confpay-field textarea,
.confpay-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.confpay-field input:focus,
.confpay-field textarea:focus,
.confpay-field select:focus {
    outline: none;
    border-color: var(--confpay-accent-2);
    box-shadow: 0 0 0 3px rgba(59,91,219,.12);
}
.required { color: #e03131; }

/* Proposals list */
.confpay-proposals { margin: 0; padding-left: 20px; }
.confpay-proposals li { margin-bottom: 6px; font-size: 15px; }

/* Radio / checkbox groups */
.confpay-radio-group,
.confpay-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confpay-radio-option,
.confpay-checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s;
}
.confpay-radio-option:hover,
.confpay-checkbox-option:hover { border-color: var(--confpay-accent-2); background: #f0f4ff; }
.confpay-radio-option input,
.confpay-checkbox-option input { margin-top: 3px; accent-color: var(--confpay-accent-2); }
.confpay-radio-option span,
.confpay-checkbox-option span { display: flex; flex-direction: column; gap: 2px; }
.confpay-radio-option em,
.confpay-addon-price { font-style: normal; color: var(--confpay-accent-2); font-size: 13px; font-weight: 600; }
.confpay-radio-option small,
.confpay-checkbox-option small { font-size: 12px; color: #666; }

/* Coupon */
.confpay-coupon-row { display: flex; gap: 10px; }
.confpay-coupon-row input { flex: 1; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 15px; }
.confpay-coupon-result { margin-top: 8px; font-size: 14px; font-weight: 600; display: none; }
.confpay-coupon-result--success { color: #2e7d32; }
.confpay-coupon-result--error   { color: #c92a2a; }

/* Price summary */
.confpay-price-summary {
    background: var(--confpay-accent);
    color: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.confpay-price-summary__breakdown ul {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
    padding-bottom: 12px;
}
.confpay-price-summary__breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    opacity: .85;
}
.confpay-discount { color: #a5d6a7 !important; opacity: 1 !important; }
.confpay-price-summary__total {
    display: flex;
    justify-content: flex-end;
    font-size: 22px;
    font-weight: 700;
}

/* Refund policy */
.confpay-refund-policy {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.confpay-already-registered {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 16px;
}

/* Submit row */
.confpay-submit-row { text-align: center; }

/* Buttons */
.confpay-btn {
    display: inline-block;
    padding: 13px 32px;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    text-decoration: none;
}
.confpay-btn--primary  { background: var(--confpay-accent-2); color: #fff; }
.confpay-btn--primary:hover { background: #2f4ac4; }
.confpay-btn--primary:disabled { opacity: .5; cursor: not-allowed; }
.confpay-btn--secondary { background: #e9ecef; color: #333; }
.confpay-btn--secondary:hover { background: #dee2e6; }

/* Confirmation */
.confpay-confirmation { max-width: 640px; margin: 0 auto; }
.confpay-confirmation__icon {
    width: 64px; height: 64px;
    background: #2e7d32; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}
.confpay-confirmation h2 { text-align: center; color: #2e7d32; margin-bottom: 20px; }
.confpay-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.confpay-table th, .confpay-table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    text-align: left;
}
.confpay-table th { width: 38%; background: #f5f5f5; font-weight: 600; color: #333; }
.confpay-optional { font-weight: 400; font-size: 13px; color: #888; }

/* Tax base / VAT lines inside the price summary */
.confpay-price-summary__breakdown ul.confpay-vat li { font-size: 13px; opacity: .75; }

/* Currency statement under the total */
.confpay-currency-note {
    font-size: 12px;
    color: #666;
    margin: -8px 0 16px;
}

/* Terms / marketing consent */
.confpay-consent {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 14px;
}
.confpay-consent .confpay-inline-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0;
    cursor: pointer;
}
.confpay-consent input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }
.confpay-consent a { text-decoration: underline; }

/* Card logos + security text below the form */
.confpay-payment-trust {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}
.confpay-payment-trust__text { font-size: 13px; color: #555; margin: 0 0 12px; }
