/* Base layout */
.ojp-section {
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .ojp-section {
        padding: 2.5rem 1.5rem;
    }
}

.ojp-section-header {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    text-align: left;
}

.ojp-section-title {
    font-size: 1.6rem;
    margin: 0 0 0.25rem 0;
}

.ojp-section-subtitle {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

/* Cards */
.ojp-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

/* Buttons */
.ojp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
    white-space: nowrap;
}

.ojp-btn-primary {
    background: linear-gradient(135deg, #0b8f76, #0fb58f);
    color: #fff;
    box-shadow: 0 10px 20px rgba(11, 143, 118, 0.3);
}

.ojp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 143, 118, 0.35);
}

.ojp-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.ojp-btn-secondary:hover {
    background: #e5e7eb;
}

/* Notices */
.ojp-notice {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.ojp-notice-success {
    border-left: 4px solid #16a34a;
    background: #f0fdf4;
    color: #166534;
}

.ojp-notice-error {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
    color: #b91c1c;
}

/* Job list */
.ojp-jobs-section .ojp-job-list {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ojp-jobs-section .ojp-job-list {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.ojp-job-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1rem 0.85rem 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.ojp-job-card-body {
    margin-bottom: 0.75rem;
}

.ojp-job-title {
    font-size: 1.1rem;
    margin: 0 0 0.4rem 0;
}

.ojp-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.ojp-job-meta-item {
    background: #f3f4f6;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    color: #374151;
}

.ojp-job-highlights {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.ojp-job-excerpt {
    font-size: 0.9rem;
    color: #4b5563;
}

.ojp-job-card-footer {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

/* Single job page */
.ojp-single-job-inner {
    max-width: 960px;
    margin: 1.5rem auto;
    padding: 1.5rem 1rem 2rem 1rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.ojp-single-job-header {
    margin-bottom: 1.25rem;
}

.ojp-single-section {
    margin-top: 1.25rem;
}

.ojp-single-section-title {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.ojp-job-description {
    font-size: 0.95rem;
    color: #374151;
}

.ojp-job-schedule {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.ojp-bullet-list {
    margin: 0 0 0 1.1rem;
    padding: 0;
    font-size: 0.95rem;
    color: #374151;
}

.ojp-bullet-list li {
    margin-bottom: 0.25rem;
}

.ojp-single-job-footer {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Application & waitlist forms */
.ojp-application-card,
.ojp-waitlist-wrapper .ojp-card {
    max-width: 960px;
}

.ojp-application-form,
.ojp-waitlist-form,
.ojp-status-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ojp-form-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.ojp-form-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.ojp-form-section-title {
    font-size: 1rem;
    margin: 0 0 0.35rem 0;
}

.ojp-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ojp-field-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.ojp-field-group input[type="text"],
.ojp-field-group input[type="email"],
.ojp-field-group input[type="date"],
.ojp-field-group select,
.ojp-field-group textarea {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.45rem 0.6rem;
    font-size: 0.92rem;
    width: 100%;
    box-sizing: border-box;
}

.ojp-field-group textarea {
    min-height: 80px;
    resize: vertical;
}

.ojp-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.ojp-field-row-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .ojp-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ojp-field-row-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ojp-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.ojp-checkbox-inline {
    font-size: 0.9rem;
}

.ojp-required {
    color: #dc2626;
}

.ojp-small-print {
    font-size: 0.8rem;
    color: #6b7280;
}

.ojp-form-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-start;
}

/* Subcards for repeated sections */
.ojp-subcard {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0.85rem;
    margin-top: 0.5rem;
    background: #f9fafb;
}

.ojp-subcard-title {
    font-size: 0.95rem;
    margin: 0 0 0.35rem 0;
}

/* Code display */
.ojp-code-display {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #f1f5f9;
    margin: 0.75rem 0 0.5rem 0;
}

.ojp-code-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.ojp-code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.2rem;
    margin-top: 0.15rem;
}

/* Status result */
.ojp-status-result {
    margin-top: 1.25rem;
}

.ojp-link {
    color: #0b8f76;
    text-decoration: underline;
}

.ojp-link:hover {
    text-decoration: none;
}
