:root {
    --jb-primary: #2773F5;
    /* Green from button */
    --jb-primary-hover: #458848;
    --jb-secondary: #f0f2f5;
    /* Light gray backgrounds */
    --jb-dark: #2c3e50;
    /* Text heavy */
    --jb-border: #e2e8f0;
    /* Borders */
    --jb-border-focus: #1a365d;
    --jb-success: #198754;
}

body.jb-body {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: var(--jb-dark);
}

/* Card Styling */
.jb-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--jb-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    overflow: hidden;
}

.jb-card-header {
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jb-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.jb-card-icon.blue {
    background-color: #4299e1;
}

.jb-card-icon.orange {
    background-color: #ed8936;
}

.jb-card-icon.green {
    background-color: #48bb78;
}

.jb-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--jb-dark);
}

.jb-card-body {
    padding: 1.5rem;
}

/* Form Controls */
.jb-form-control {
    border-radius: 6px;
    border: 1px solid var(--jb-border);
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #fdfdfd;
}

.jb-form-control:focus {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    border-color: #63b3ed;
    background-color: #fff;
}

.jb-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.jb-input-icon {
    position: absolute;
    left: 12px;
    color: #a0aec0;
    font-size: 18px;
    z-index: 4;
}

.jb-input-with-icon {
    padding-left: 38px;
}

/* Checkmark logic for validated inputs */
.jb-input-success-icon {
    position: absolute;
    right: 12px;
    color: var(--jb-success);
    font-size: 18px;
    display: none;
    z-index: 4;
}

.jb-form-control:valid+.jb-input-success-icon {
    display: block;
}

/* Base Inputs without the sibling adjacent requirement for checkmarks */
.jb-is-valid-sibling {
    position: relative;
}

/* Select */
.jb-form-select {
    border-radius: 6px;
    border: 1px solid var(--jb-border);
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
}

/* Textarea */
textarea.jb-form-control {
    resize: vertical;
    min-height: 80px;
}

/* Layout Utilities */
.jb-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.4rem;
    display: block;
}

/* File Upload Zone */
.jb-file-upload {
    border: 2px dashed #cbd5e0;
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.jb-file-upload:hover {
    border-color: #a0aec0;
    background-color: #edf2f7;
}

.jb-file-upload i {
    font-size: 24px;
    color: #a0aec0;
}

/* Buttons */
.jb-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.jb-btn-primary {
    background-color: var(--jb-primary);
    color: white;
}

.jb-btn-primary:hover {
    background-color: var(--jb-primary-hover);
    color: white;
}

.jb-btn-secondary {
    background-color: #f7fafc;
    color: #4a5568;
    border-color: #e2e8f0;
}

.jb-btn-secondary:hover {
    background-color: #edf2f7;
    color: #2d3748;
}

/* Radio buttons matching image */
.jb-radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.jb-form-check {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jb-form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0;
}

/* Enhanced Pro Card Styling */
.jb-card-pro {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

.jb-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #198754, #2cd89c);
    z-index: 2;
}

.jb-card-pro:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.jb-card-pro .jb-card-body {
    padding: 1.75rem 1.75rem 0.5rem 1.75rem;
}

.jb-list-pro {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.jb-list-pro li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.4;
}

.jb-list-pro li i {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 14px;
}

.jb-btn-pro {
    border-radius: 50rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--jb-primary), #002D9E);
    border: none;
    color: white;
}

.jb-btn-pro:hover {
    background: linear-gradient(135deg, var(--jb-primary-hover), #1f7d34);
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.25);
    color: white;
    transform: translateY(-2px);
}

.jb-btn-pro:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.badge-pro {
    padding: 0.4em 0.85em;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 8px;
}