/* =========================================
   Cancellations Pro Front-End Styles (SaaS Theme)
   ========================================= */

/* -----------------------
   Base Variables
-------------------------- */
:root {
    --cpro-primary: #0073aa;
    --cpro-primary-hover: #005f8d;
    --cpro-secondary: #6b7280;
    --cpro-success: #16a34a;
    --cpro-danger: #dc2626;
    --cpro-warning: #f59e0b;
    --cpro-info: #2563eb;
    --cpro-radius: 8px;
    --cpro-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    --cpro-font: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* -----------------------
   Global Layout
-------------------------- */
.cpro-registration-form,
.cpro-form {
    font-family: var(--cpro-font);
    color: #1f2937;
}

/* Red asterisk */
.cpro-registration-form .required {
    color: #dc3545;
    font-weight: bold;
}

/* -----------------------
   Form Grid
-------------------------- */
.cpro-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.cpro-field label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.cpro-field input,
.cpro-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: var(--cpro-radius);
    font-size: 14px;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.cpro-field input:focus,
.cpro-field select:focus {
    border-color: var(--cpro-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
    outline: none;
}

/* -----------------------
   Alerts / Banners
-------------------------- */
.cpro-alert {
    padding: 12px 16px;
    border-radius: var(--cpro-radius);
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: var(--cpro-shadow);
}

.cpro-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid var(--cpro-success);
}

.cpro-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--cpro-danger);
}

.cpro-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid var(--cpro-info);
}

.cpro-alert-warning {
    background: #fff7ed;
    color: #92400e;
    border-left: 4px solid var(--cpro-warning);
}

/* -----------------------
   Buttons (SaaS Theme)
-------------------------- */
.cpro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--cpro-radius);
    font-family: var(--cpro-font);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 10px 18px;
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: var(--cpro-shadow);
}

/* Primary */
.cpro-btn.primary {
    background: var(--cpro-primary);
    color: #fff;
}

.cpro-btn.primary:hover {
    background: var(--cpro-primary-hover);
    transform: translateY(-1px);
}

.cpro-btn.primary:active {
    transform: translateY(0);
}

/* Secondary */
.cpro-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.cpro-btn.secondary:hover {
    background: #e5e7eb;
}

/* Success */
.cpro-btn.success {
    background: var(--cpro-success);
    color: #fff;
}

.cpro-btn.success:hover {
    background: #15803d;
}

/* Danger */
.cpro-btn.danger {
    background: var(--cpro-danger);
    color: #fff;
}

.cpro-btn.danger:hover {
    background: #b91c1c;
}

/* Warning */
.cpro-btn.warning {
    background: var(--cpro-warning);
    color: #fff;
}

.cpro-btn.warning:hover {
    background: #d97706;
}

/* Info */
.cpro-btn.info {
    background: var(--cpro-info);
    color: #fff;
}

.cpro-btn.info:hover {
    background: #1d4ed8;
}

/* Disabled state */
.cpro-btn:disabled,
.cpro-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Button container alignment */
.cpro-form-actions {
    text-align: right;
    margin-top: 10px;
}

/* =========================================
   CPRO Card Layout System
   ========================================= */

/*.cpro-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
}*/

.cpro-card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}

.cpro-card-body {
    padding: 20px;
}

.cpro-card-body .cpro-field+.cpro-field {
    margin-top: 10px;
}

.cpro-card-footer {
    border-top: 1px solid #e5e7eb;
    padding: 12px 20px;
    background: #f9fafb;
    text-align: right;
}

/* ===============================
   Dashboard Header + Container
   =============================== */
.cpro-container {
    max-width: 1040px;
    margin: 24px auto;
    padding: 0 16px;
}

.cpro-dashboard-header {
    background: linear-gradient(90deg, rgba(0, 115, 170, 0.08), rgba(37, 99, 235, 0.08));
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cpro-dashboard-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.cpro-dashboard-subtitle {
    font-size: 13px;
    color: #475569;
    margin: 0;
}

.cpro-dashboard-actions .cpro-btn {
    border-radius: 999px;
    /* pill button */
    padding: 8px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

body .cpro-container {
    /* scoped so we don't fight the theme */
    background: transparent;
}