/**
 * SPOS Talent Jobs — Frontend Styles
 * Design based on SPOS Talent branding (teal palette).
 */

:root {
    --st-primary: #29798C;
    --st-primary-dark: #1f6070;
    --st-primary-darker: #174955;
    --st-primary-light: #e4f0f3;
    --st-white: #ffffff;
    --st-text: #2d3748;
    --st-text-light: #718096;
    --st-text-lighter: #a0aec0;
    --st-border: #e2e8f0;
    --st-bg: #f7fafc;
    --st-radius: 10px;
    --st-radius-sm: 6px;
    --st-radius-pill: 50px;
    --st-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --st-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --st-font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =============================================
   SHARED COMPONENTS
   ============================================= */

/* Buttons */
.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--st-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 12px 28px;
    border-radius: var(--st-radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.st-btn-primary {
    background: var(--st-primary);
    color: var(--st-white) !important;
    border-color: var(--st-primary);
}

.st-btn-primary:hover {
    background: var(--st-primary-dark);
    border-color: var(--st-primary-dark);
    color: var(--st-white) !important;
}

.st-btn-accent {
    background: var(--st-primary);
    color: var(--st-white) !important;
    border-color: var(--st-primary);
}

.st-btn-accent:hover {
    background: var(--st-primary-dark);
    border-color: var(--st-primary-dark);
    color: var(--st-white) !important;
}

.st-btn-outline {
    background: transparent;
    color: var(--st-white) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.st-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--st-white) !important;
}

.st-btn-sm {
    padding: 10px 22px;
    font-size: 13px;
}

/* =============================================
   SEARCH WIDGET — [spos_talent_search]
   (Homepage hero section)
   ============================================= */
.st-search-widget {
    max-width: 580px;
    margin: 0 auto;
    background: var(--st-white);
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.st-search-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.st-search-input,
.st-search-select {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    font-family: var(--st-font);
    font-size: 14px;
    color: var(--st-text);
    background: var(--st-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    height: 50px;
}

.st-search-input:focus,
.st-search-select:focus {
    outline: none;
    border-color: var(--st-primary);
    box-shadow: 0 0 0 3px rgba(41, 121, 140, 0.12);
}

.st-search-input::placeholder {
    color: var(--st-text-lighter);
}

.st-search-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2329798C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
    cursor: pointer;
}

.st-search-row-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.st-search-btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    height: 52px;
    border-radius: var(--st-radius);
}

/* =============================================
   OVERVIEW — [spos_talent_vacatures]
   ============================================= */
.st-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: var(--st-font);
}

/* Filter bar */
.st-filter-bar {
    margin-bottom: 24px;
}

.st-filter-bar-inner {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.st-filter-input,
.st-filter-select {
    padding: 13px 16px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    font-family: var(--st-font);
    font-size: 14px;
    color: var(--st-text);
    background: var(--st-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    height: 48px;
}

.st-filter-input {
    flex: 1;
    min-width: 200px;
}

.st-filter-input:focus,
.st-filter-select:focus {
    outline: none;
    border-color: var(--st-primary);
    box-shadow: 0 0 0 3px rgba(41, 121, 140, 0.12);
}

.st-filter-input::placeholder {
    color: var(--st-text-lighter);
}

.st-filter-select {
    min-width: 160px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2329798C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.st-filter-afstand {
    min-width: 120px;
}

#st-filter-btn {
    flex-shrink: 0;
}

/* Vacature count */
.st-vac-count {
    font-size: 14px;
    color: var(--st-text-light);
    margin: 0 0 20px 0;
}

#st-vac-count-num {
    font-weight: 700;
    color: var(--st-primary);
}

/* Card list */
.st-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card */
.st-card {
    background: var(--st-white);
    border: 1px solid var(--st-border);
    border-left: 4px solid var(--st-primary);
    border-radius: var(--st-radius);
    padding: 24px 28px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.st-card:hover {
    box-shadow: var(--st-shadow-md);
    border-left-color: var(--st-primary-dark);
}

.st-card-header {
    margin-bottom: 10px;
}

.st-card-title {
    font-family: var(--st-font);
    font-size: 19px;
    font-weight: 700;
    color: var(--st-text);
    margin: 0;
    line-height: 1.3;
}

/* Card meta row */
.st-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.st-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--st-text-light);
}

.st-meta-item svg {
    flex-shrink: 0;
    color: var(--st-primary);
}

.st-meta-plaats {
    color: var(--st-primary-dark);
    font-weight: 500;
}

.st-meta-salaris {
    background: var(--st-primary-light);
    color: var(--st-primary-dark);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.st-meta-salaris svg {
    color: var(--st-primary-dark);
}

/* Card excerpt */
.st-card-excerpt {
    font-size: 14px;
    color: var(--st-text-light);
    line-height: 1.6;
    margin: 0 0 14px 0;
}

/* Card footer */
.st-card-footer {
    display: flex;
    justify-content: flex-start;
}

/* No results */
.st-no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--st-text-light);
    font-size: 16px;
}

/* Open sollicitatie CTA */
.st-open-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    margin-top: 16px;
}

.st-open-label {
    font-size: 16px;
    color: var(--st-text-light);
    margin: 0;
}

/* =============================================
   SINGLE — Vacature Detail Page
   ============================================= */

.st-single {
    font-family: var(--st-font);
}

/* Hero */
.st-single-hero {
    background: linear-gradient(135deg, var(--st-primary-darker) 0%, var(--st-primary) 100%);
    padding: 0;
    border-bottom: 4px solid var(--st-primary);
}

.st-single-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5% 50px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

.st-single-back {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    margin-bottom: 20px;
    display: inline-block;
    transition: color 0.2s;
}

.st-single-back:hover {
    color: var(--st-white) !important;
}

.st-single-title {
    font-family: var(--st-font);
    font-size: 36px;
    font-weight: 700;
    color: var(--st-white);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

/* Hero meta */
.st-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.st-single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
}

.st-single-meta-item svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
}

.st-single-meta-salaris {
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--st-white);
}

.st-single-meta-salaris svg {
    color: rgba(255, 255, 255, 0.7);
}

/* Content section */
.st-single-content {
    padding: 50px 0;
}

.st-single-content-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Content blocks */
.st-single-block {
    margin-bottom: 36px;
}

.st-single-block h2 {
    font-family: var(--st-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--st-text);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--st-primary);
    display: inline-block;
}

.st-single-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--st-text);
}

.st-single-text p {
    margin: 0 0 16px 0;
}

.st-single-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px 0;
}

.st-single-text li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.st-single-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--st-primary);
    border-radius: 50%;
}

/* CTA section */
.st-single-cta-section {
    background: var(--st-primary-dark);
    padding: 0;
}

.st-single-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.st-single-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.st-single-cta-left {
    padding: 50px 40px 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.st-single-cta-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

.st-single-cta-title {
    font-family: var(--st-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--st-white);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.st-single-cta-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.st-single-cta-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.st-single-cta-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: color 0.2s;
}

.st-single-cta-contact a:hover {
    color: var(--st-white) !important;
}

.st-single-cta-contact svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
}

.st-single-cta-right {
    padding: 50px 0 50px 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.st-single-cta-fallback {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
}

/* CF7 form inside CTA */
.st-single-cta-right .wpcf7 input[type="text"],
.st-single-cta-right .wpcf7 input[type="email"],
.st-single-cta-right .wpcf7 input[type="tel"],
.st-single-cta-right .wpcf7 textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--st-radius-sm);
    font-family: var(--st-font);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--st-white);
    margin-top: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.st-single-cta-right .wpcf7 input::placeholder,
.st-single-cta-right .wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.st-single-cta-right .wpcf7 input:focus,
.st-single-cta-right .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--st-primary);
    background: rgba(255, 255, 255, 0.1);
}

.st-single-cta-right .wpcf7 label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.st-single-cta-right .wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    background: var(--st-primary);
    color: var(--st-white);
    font-family: var(--st-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 13px 20px;
    border: none;
    border-radius: var(--st-radius-pill);
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.st-single-cta-right .wpcf7 input[type="submit"]:hover {
    background: var(--st-primary-dark);
}

.st-single-cta-right .wpcf7 .wpcf7-form-control-wrap {
    display: block;
}

/* File upload styling */
.st-single-cta-right .wpcf7 input[type="file"] {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 4px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .st-single-cta {
        grid-template-columns: 1fr;
    }

    .st-single-cta-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 40px 0;
    }

    .st-single-cta-left {
        padding: 40px 0;
    }

    .st-single-title {
        font-size: 28px;
    }

    .st-single-hero-inner {
        min-height: 220px;
        padding: 40px 5%;
    }
}

@media (max-width: 768px) {
    /* Search widget */
    .st-search-row-selects {
        grid-template-columns: 1fr;
    }

    /* Filter bar */
    .st-filter-bar-inner {
        flex-direction: column;
    }

    .st-filter-input,
    .st-filter-select {
        width: 100%;
    }

    #st-filter-btn {
        width: 100%;
    }

    /* Cards */
    .st-card {
        padding: 20px;
    }

    .st-card-meta {
        gap: 10px;
    }

    /* Open CTA — already centered, no changes needed */

    /* Single */
    .st-single-title {
        font-size: 24px;
    }

    .st-single-meta {
        gap: 12px;
    }

    .st-single-block h2 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .st-search-widget {
        padding: 18px 20px;
    }

    .st-card-title {
        font-size: 17px;
    }
}
