/**
 * Restaurant Job Vacancy & Biodata Collector - Frontend CSS
 */

:root {
    --rjb-primary: #8b0000;         /* Warm Restaurant Crimson / Burgundy */
    --rjb-primary-hover: #6b0000;
    --rjb-accent: #d4af37;          /* Warm Gold */
    --rjb-bg-card: #ffffff;
    --rjb-border: #e2e8f0;
    --rjb-border-focus: #8b0000;
    --rjb-text-main: #1e293b;
    --rjb-text-muted: #64748b;
    --rjb-success: #16a34a;
    --rjb-error: #dc2626;
    --rjb-radius: 8px;
    --rjb-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* =========================================================================
   FORM CONTAINER
   ========================================================================= */
.rjb-form-wrapper {
    max-width: 780px;
    margin: 30px auto;
    background: var(--rjb-bg-card);
    border: 1px solid var(--rjb-border);
    border-radius: var(--rjb-radius);
    padding: 35px 30px;
    box-shadow: var(--rjb-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--rjb-text-main);
    box-sizing: border-box;
}

.rjb-form-wrapper *,
.rjb-form-wrapper *::before,
.rjb-form-wrapper *::after {
    box-sizing: border-box;
}

.rjb-form-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.rjb-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--rjb-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.rjb-form-subtitle {
    font-size: 15px;
    color: var(--rjb-text-muted);
    margin: 0;
}

/* Form Layout Grid */
.rjb-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: 16px;
}

.rjb-form-group {
    padding-right: 10px;
    padding-left: 10px;
    width: 100%;
}

.rjb-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.rjb-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 650px) {
    .rjb-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 14px;
    }
    .rjb-form-wrapper {
        padding: 22px 16px;
    }
}

/* Labels & Icons */
.rjb-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.rjb-label .rjb-icon {
    margin-right: 4px;
}

/* Input Fields */
.rjb-input,
.rjb-select,
.rjb-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--rjb-text-main);
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    outline: none;
    font-family: inherit;
}

.rjb-input:focus,
.rjb-select:focus,
.rjb-textarea:focus {
    background-color: #ffffff;
    border-color: var(--rjb-primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
}

.rjb-textarea {
    resize: vertical;
}

/* File Upload Drag & Drop Box */
.rjb-file-upload-box {
    position: relative;
    border: 2px dashed #94a3b8;
    background: #f8fafc;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rjb-file-upload-box:hover,
.rjb-file-upload-box.dragover {
    border-color: var(--rjb-primary);
    background: #fff8f8;
}

.rjb-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.rjb-upload-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.rjb-file-choose-text {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}

.rjb-file-hint {
    display: block;
    font-size: 12px;
    color: var(--rjb-text-muted);
}

.rjb-selected-filename {
    margin-top: 10px;
    display: inline-block;
    padding: 5px 12px;
    background: #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

/* Captcha Field */
.rjb-captcha-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rjb-captcha-math {
    font-size: 18px;
    font-weight: 700;
    color: var(--rjb-primary);
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    min-width: 80px;
    text-align: center;
}

.rjb-captcha-input {
    max-width: 110px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
}

/* Submit Actions */
.rjb-form-actions {
    margin-top: 22px;
    text-align: center;
}

.rjb-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rjb-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 34px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
    max-width: 320px;
}

.rjb-submit-btn:hover {
    background-color: var(--rjb-primary-hover);
}

.rjb-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.rjb-btn-spinner {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: rjb-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes rjb-spin {
    to { transform: rotate(360deg); }
}

/* Response Messages */
.rjb-form-response {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.rjb-response-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.rjb-response-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* =========================================================================
   VACANCIES CARDS GRID ([restaurant_jobs])
   ========================================================================= */
.rjb-vacancies-wrap {
    max-width: 1100px;
    margin: 30px auto;
    font-family: inherit;
}

.rjb-vacancies-title {
    text-align: center;
    font-size: 28px;
    color: var(--rjb-primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.rjb-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.rjb-job-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--rjb-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rjb-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.rjb-job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.rjb-job-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.rjb-job-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.rjb-job-meta {
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}

.rjb-job-meta-item {
    display: block;
    margin-bottom: 4px;
}

.rjb-job-content {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 18px;
}

.rjb-job-card-footer {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.rjb-apply-trigger-btn {
    display: inline-block;
    background: #f1f5f9;
    color: var(--rjb-primary);
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.rjb-apply-trigger-btn:hover {
    background: var(--rjb-primary);
    color: #ffffff;
}

/* Default Roles Banner when no posts */
.rjb-default-roles-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.rjb-roles-lead {
    font-size: 16px;
    color: #334155;
    margin-bottom: 18px;
}

.rjb-roles-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.rjb-role-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.rjb-role-chip span {
    color: var(--rjb-primary);
    text-decoration: underline;
    margin-left: 4px;
}

.rjb-role-chip:hover {
    border-color: var(--rjb-primary);
    background: #fff8f8;
    transform: translateY(-2px);
}

