/* Rezervace a poukazy — form styles */
* { box-sizing: border-box; }

.rapo-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 520px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.rapo-header {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    padding: 28px 32px;
    text-align: center;
}

.rapo-header h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #dd3333;
}

.rapo-header p {
    font-size: 14px;
    opacity: 0.85;
}

.rapo-course-details {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 13px;
    text-align: left;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.rapo-course-details span {
    display: block;
}

.rapo-body {
    padding: 28px 32px;
}

.rapo-field {
    margin-bottom: 18px;
}

.rapo-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.rapo-field input,
.rapo-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fafafa;
}

.rapo-field input:focus,
.rapo-field select:focus {
    outline: none;
    border-color: #dd3333;
    background: #fff;
}

/* Discount code row */
.rapo-discount-row {
    display: flex;
    gap: 8px;
}

.rapo-discount-row input {
    flex: 1;
}

.rapo-btn-discount {
    padding: 11px 18px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.rapo-btn-discount:hover {
    background: #333;
}

.rapo-discount-status {
    margin-top: 6px;
    font-size: 13px;
    min-height: 18px;
}

.rapo-discount-status.success {
    color: #61a229;
}

.rapo-discount-status.error {
    color: #dd3333;
}

/* Notice */
.rapo-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #8d6e00;
    text-align: center;
    margin-bottom: 12px;
}

/* Price box */
.rapo-price-box {
    background: #fdf2f2;
    border: 1px solid #f0c0c0;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

.rapo-price-box .price {
    font-size: 28px;
    font-weight: 700;
    color: #dd3333;
}

.rapo-price-box .price-label {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.rapo-discount-info {
    margin-top: 8px;
}

.rapo-original-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.rapo-discount-badge {
    font-size: 13px;
    background: #61a229;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Submit button */
.rapo-btn {
    width: 100%;
    padding: 14px;
    background: #dd3333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.rapo-btn:hover {
    background: #dd0000;
}

.rapo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Payment page */
.rapo-payment {
    display: none;
}

.rapo-payment.active {
    display: block;
}

.rapo-form.hidden {
    display: none;
}

.rapo-payment-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.rapo-payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.rapo-payment-row:last-child {
    border-bottom: none;
}

.rapo-payment-row .label {
    color: #666;
}

.rapo-payment-row .value {
    font-weight: 600;
    color: #333;
}

.rapo-qr-section {
    text-align: center;
    margin: 24px 0;
}

.rapo-qr-section canvas {
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
}

.rapo-qr-hint {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

.rapo-success-note {
    background: #f0f7ec;
    border: 1px solid #b5d6a0;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    color: #4e8221;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.rapo-back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #dd3333;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.rapo-back-link:hover {
    color: #dd0000;
}

.rapo-gdpr {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 14px;
    line-height: 1.4;
}

/* Voucher form */
.rapo-voucher-wrapper .rapo-header {
    background: linear-gradient(135deg, #1a1a1a, #2d1a1a);
}

.rapo-voucher-wrapper .rapo-header p {
    opacity: 0.9;
}

.rapo-voucher-wrapper .rapo-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fafafa;
    cursor: pointer;
    appearance: auto;
}

.rapo-voucher-wrapper .rapo-field select:focus {
    outline: none;
    border-color: #dd3333;
    background: #fff;
}

/* Voucher amount field */
.rapo-voucher-amount-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Loading spinner */
.rapo-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #dd3333;
    border-radius: 50%;
    animation: rapo-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes rapo-spin {
    to { transform: rotate(360deg); }
}

/* Newsletter consent checkbox */
.rapo-newsletter-consent {
    margin: 16px 0 12px;
}

.rapo-newsletter-consent label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.rapo-newsletter-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #dd3333;
    cursor: pointer;
    flex-shrink: 0;
}

/* Newsletter form */
.rapo-newsletter-wrapper {
    max-width: 440px;
}

.rapo-newsletter-header {
    background: linear-gradient(135deg, #1a1a1a, #2d1a1a) !important;
}

.rapo-newsletter-success {
    padding: 10px 0;
}
