.wcb-form-wrapper {
    max-width: 720px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wcb-form-wrapper h2 {
    text-align: center;
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.wcb-form-card {
    transition: box-shadow 0.3s ease;
    background: #ffffff;
    border: 1px solid #E3E5EA;
    border-radius: 16px;
    padding: 30px 28px 28px;
    box-shadow: 0 24px 48px -30px rgba(18, 34, 74, 0.18);
}
.wcb-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.wcb-field {
    display: flex;
    flex-direction: column;
}

.wcb-field.wcb-full {
    grid-column: 1 / -1;
}

.wcb-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.wcb-field label .wcb-req {
    color: #ef4444;
    margin-left: 2px;
}

.wcb-field input,
.wcb-field select {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.25s ease;
    color: #1f2937;
    width: 100%;
    box-sizing: border-box;
}

.wcb-field input:focus,
.wcb-field select:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.10);
}

.wcb-field input::placeholder {
    color: #9ca3af;
}

.wcb-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.wcb-field select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

.wcb-hint {
    font-size: 13px;
    color: #6b7280;
    margin: -10px 0 0;
    padding: 0px 5px;
}

/* ===== COUPON WRAPPER - NEW ===== */
.wcb-coupon-wrapper {
    display: flex;
    gap: 10px;
}

.wcb-coupon-wrapper input {
    flex: 1;
}

.wcb-coupon-btn {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

.wcb-coupon-btn:hover {
    background: #5a6fd6;
    transform: translateY(-1px);
}

.wcb-coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== COUPON MESSAGE - NEW ===== */
#wcb-coupon-message {
    font-size: 14px;
    padding: 5px;
}

#wcb-coupon-message.success {
    color: #155724;
}

#wcb-coupon-message.error {
    color: #721c24;
}

.wcb-amount-box {
    margin-top: 20px;
    background: #E7F4E2;
    border: 1px solid rgba(58, 160, 40, 0.25);
    border-radius: 12px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wcb-amount-box .wcb-lbl {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.wcb-amount-box .wcb-val {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.wcb-amount-box .wcb-val small {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
    margin-left: 4px;
}

.wcb-amount-box .wcb-val .wcb-original {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.wcb-amount-box .wcb-val .wcb-discount {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.wcb-pay-btn {
    margin-top: 18px;
    width: 100%;
    border: none;
    border-radius: 30px;
    padding: 15px 18px;
    background: #12224A;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background .15s ease, transform .1s ease;
}
.wcb-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35);
    background: #1B3061;
}

.wcb-pay-btn:active {
    transform: translateY(0);
}

.wcb-pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.wcb-pay-btn .wcb-spinner {
    display: none;
}

.wcb-pay-btn.loading .wcb-btn-text {
    display: none;
}

.wcb-pay-btn.loading .wcb-spinner {
    display: inline;
}

.wcb-pay-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin: 14px 0 0 0;
    padding: 0px;
}

.wcb-pay-note svg {
    flex-shrink: 0;
}

.wcb-form-msg {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 500;
    display: none;
}

.wcb-form-msg.show {
    display: block;
}

.wcb-form-msg.ok {
    background: #f0fdf4;
    color: #166534;
    border: 2px solid #86efac;
}

.wcb-form-msg.err {
    background: #fef2f2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

@media (max-width: 768px) {
    .wcb-form-card {
        padding: 20px;
        border-radius: 16px;
    }

    .wcb-field-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wcb-field.wcb-full {
        grid-column: 1;
    }

    .wcb-amount-box {
        align-items: stretch;
        text-align: center;
        gap: 6px;
        padding: 16px 20px;
    }

    .wcb-amount-box .wcb-val {
        font-size: 24px;
    }

    .wcb-pay-btn {
        font-size: 16px;
        padding: 14px;
    }

    .wcb-form-wrapper h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .wcb-coupon-wrapper {
        flex-direction: column;
    }
    
    .wcb-coupon-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wcb-form-card {
        padding: 16px;
        border-radius: 12px;
    }

    .wcb-field input,
    .wcb-field select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .wcb-amount-box .wcb-val {
        font-size: 22px;
    }

    .wcb-pay-btn {
        font-size: 15px;
        padding: 13px;
    }

    .wcb-hint {
        font-size: 12px;
        padding: 8px 12px;
    }
}