/**
 * Public styles for Recap Subscriptions Pro
 * Minimal styles that inherit from theme
 */

.recap-subscription-form-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: inherit;
    border-radius: 4px;
}

.recap-form-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.recap-subscription-form {
    max-width: 500px;
}

.recap-form-group {
    margin-bottom: 15px;
}

.recap-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.recap-form-label .required {
    color: #d00;
}

.recap-form-input,
.recap-form-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 1em;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.recap-form-input:focus,
.recap-form-select:focus {
    outline: none;
    border-color: #0073aa;
}

.recap-form-checkbox {
    display: flex;
    align-items: flex-start;
}

.recap-form-checkbox label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.recap-form-checkbox input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
}

.recap-form-submit {
    width: 100%;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.recap-form-submit:hover {
    background-color: #005a87;
}

.recap-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.recap-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
}

.recap-form-message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

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

/* Manage subscription page */
.recap-manage-subscription {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recap-manage-subscription h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.recap-manage-subscription h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.recap-current-info {
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.recap-current-info p {
    margin: 8px 0;
}

.recap-manage-form .recap-form-group {
    margin-bottom: 20px;
}

.recap-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.recap-btn {
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recap-btn-primary {
    color: #fff;
    background-color: #0073aa;
}

.recap-btn-primary:hover {
    background-color: #005a87;
}

.recap-btn-danger {
    color: #fff;
    background-color: #dc3545;
}

.recap-btn-danger:hover {
    background-color: #c82333;
}

.recap-success {
    padding: 15px;
    margin-bottom: 20px;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.recap-error {
    padding: 15px;
    margin-bottom: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.recap-manage-access {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .recap-subscription-form-wrapper {
        padding: 15px;
    }
    
    .recap-manage-subscription {
        padding: 20px;
    }
    
    .recap-form-actions {
        flex-direction: column;
    }
    
    .recap-btn {
        width: 100%;
    }
}

/* Widget specific styles */
.widget .recap-subscription-form-wrapper {
    padding: 0;
}

.widget .recap-subscription-form {
    max-width: 100%;
}

/* Loading state */
.recap-subscription-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.recap-subscription-form.loading .recap-form-submit::after {
    content: "...";
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
