.ipp-form {
    max-width: 500px;
    margin: 0 auto;
    font-family: inherit;
}

.ipp-heading {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #333;
}

.ipp-description {
    color: #666;
    margin-bottom: 1.5em;
}

/* Fields */
.ipp-field {
    margin-bottom: 1.25em;
}

.ipp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4em;
    color: #333;
    font-size: 0.9em;
}

.ipp-field input[type="text"],
.ipp-field input[type="email"],
.ipp-field input[type="number"],
.ipp-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ipp-field input:focus,
.ipp-field textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.ipp-field-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.3em;
}

/* Input group (currency prefix) */
.ipp-input-group {
    display: flex;
    align-items: stretch;
}

.ipp-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #666;
    font-size: 1em;
}

.ipp-input-group input {
    border-radius: 0 4px 4px 0 !important;
    flex: 1;
}

/* Invoice badge */
.ipp-invoice-badge {
    display: inline-block;
    background: #f0f6fc;
    border: 1px solid #c8e1ff;
    color: #0366d6;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 1.5em;
}

/* Fee breakdown */
.ipp-fee-breakdown {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 1.5em;
}

.ipp-fee-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95em;
    color: #555;
}

.ipp-fee-total {
    border-top: 2px solid #ddd;
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
}

/* Stripe card element */
.ipp-card-element {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s;
}

.ipp-card-element.StripeElement--focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.ipp-card-element.StripeElement--invalid {
    border-color: #dc3545;
}

/* Buttons */
.ipp-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-align: center;
    font-family: inherit;
}

.ipp-btn:hover {
    opacity: 0.9;
}

.ipp-btn:active {
    transform: scale(0.99);
}

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

.ipp-btn-primary {
    background-color: #0073aa;
    color: #fff;
    margin-bottom: 10px;
}

.ipp-btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    font-weight: 400;
}

.ipp-btn-secondary:hover {
    background: #f5f5f5;
    opacity: 1;
}

/* Messages */
.ipp-message {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.ipp-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Success */
.ipp-step-success {
    text-align: center;
    padding: 2em 1em;
}

.ipp-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d4edda;
    color: #155724;
    font-size: 2em;
    margin-bottom: 0.5em;
}

.ipp-success-message {
    color: #555;
    margin-bottom: 1.5em;
    font-size: 1.05em;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .ipp-form {
        padding: 0 16px;
    }

    .ipp-heading {
        font-size: 1.3em;
    }
}
