/* ===============================================================
 * FB Jobs Form - Frontend CSS
 * Future Building arany témában
 * =============================================================== */

.fbj-section {
    background: #F7F5F1;
    padding: 80px 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1A1A1A;
}

.fbj-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
.fbj-header {
    text-align: center;
    margin-bottom: 48px;
}

.fbj-overline {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #C5A04A;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.fbj-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1A1A1A;
    line-height: 1.2;
}

.fbj-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #6B6B6B;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .fbj-title { font-size: 32px; }
    .fbj-section { padding: 48px 0; }
}

/* === Form === */
.fbj-form {
    background: white;
    border: 1px solid #E2DDD3;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .fbj-form { padding: 24px 20px; }
}

/* === Section heading (Személyes adatok, stb.) === */
.fbj-section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 32px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E2DDD3;
}

.fbj-section-heading:first-child {
    margin-top: 0;
}

/* === Grid (2 oszlopos field elrendezés) === */
.fbj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .fbj-grid { grid-template-columns: 1fr; }
}

/* === Field === */
.fbj-field {
    margin-bottom: 16px;
}

.fbj-field-full {
    grid-column: 1 / -1;
}

.fbj-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 6px;
    line-height: 1.4;
}

.fbj-required-mark {
    color: #DC3232;
    font-weight: 700;
}

.fbj-hint {
    font-size: 11px;
    color: #999;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* === Input === */
.fbj-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #D8D2C5;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #FAFAF8;
    color: #1A1A1A;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.fbj-input:focus {
    outline: none;
    border-color: #C5A04A;
    background: white;
    box-shadow: 0 0 0 3px rgba(197, 160, 74, 0.1);
}

textarea.fbj-input {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

select.fbj-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* === File input === */
.fbj-file-wrap {
    position: relative;
}

.fbj-file-input {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    overflow: hidden;
    z-index: -1;
}

.fbj-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px dashed #D8D2C5;
    border-radius: 4px;
    background: #FAFAF8;
    color: #6B6B6B;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.fbj-file-label:hover {
    border-color: #C5A04A;
    color: #C5A04A;
    background: rgba(197, 160, 74, 0.04);
}

.fbj-file-label svg {
    flex-shrink: 0;
}

.fbj-file-wrap.has-file .fbj-file-label {
    border-style: solid;
    border-color: #46b450;
    color: #2D8B3B;
    background: rgba(70, 180, 80, 0.06);
}

.fbj-file-wrap.has-file .fbj-file-label svg path,
.fbj-file-wrap.has-file .fbj-file-label svg circle {
    stroke: #46b450;
}

/* === GDPR === */
.fbj-gdpr {
    margin-top: 24px;
    padding: 16px;
    background: #FAFAF8;
    border: 1px solid #E2DDD3;
    border-radius: 4px;
}

.fbj-gdpr label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.6;
    color: #4A4A4A;
}

.fbj-gdpr input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #C5A04A;
    margin-top: 1px;
    cursor: pointer;
}

.fbj-gdpr span .fbj-required-mark {
    margin-left: 4px;
}

/* === Submit === */
.fbj-submit-wrap {
    margin-top: 32px;
    text-align: center;
}

.fbj-section .fbj-form .fbj-submit-wrap button.fbj-submit,
.fbj-section .fbj-form .fbj-submit-wrap button.fbj-submit:link,
.fbj-section .fbj-form .fbj-submit-wrap button.fbj-submit:visited {
    background: linear-gradient(135deg, #C5A04A 0%, #8B6F2A 100%) !important;
    background-color: #C5A04A !important;
    color: #ffffff !important;
    border: 0 none transparent !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 4px !important;
    padding: 14px 40px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    font-family: inherit !important;
    letter-spacing: 0.5px !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.fbj-section .fbj-form .fbj-submit-wrap button.fbj-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(197, 160, 74, 0.35) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 0 none transparent !important;
    background: linear-gradient(135deg, #C5A04A 0%, #8B6F2A 100%) !important;
}

.fbj-section .fbj-form .fbj-submit-wrap button.fbj-submit:focus,
.fbj-section .fbj-form .fbj-submit-wrap button.fbj-submit:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 0 none transparent !important;
    outline: none !important;
    background: linear-gradient(135deg, #C5A04A 0%, #8B6F2A 100%) !important;
}

.fbj-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* === Errors === */
.fbj-errors {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-left: 4px solid #DC3232;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #991B1B;
    font-size: 13px;
}

.fbj-errors strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.fbj-errors ul {
    margin: 0;
    padding-left: 24px;
}

.fbj-errors li {
    margin-bottom: 4px;
}

/* === Success === */
.fbj-success {
    background: white;
    border: 1px solid #E2DDD3;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.fbj-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #C5A04A 0%, #8B6F2A 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(197, 160, 74, 0.3);
}

.fbj-success-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 16px;
}

.fbj-success-msg {
    font-size: 16px;
    line-height: 1.7;
    color: #6B6B6B;
    max-width: 480px;
    margin: 0 auto;
}
