/* ============================================
   Polifilm Başvuru Formu - Styles
   ============================================ */

.pbf-form-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.pbf-title {
    font-size: 28px;
    font-weight: 700;
    color: #f26522;
    margin: 0 0 30px 0;
    padding: 0;
    line-height: 1.3;
}

/* Form Container */
.pbf-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 40px 45px;
}

/* Honeypot */
.pbf-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Row - 2 column grid */
.pbf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 50px;
    margin-bottom: 25px;
}

/* Column */
.pbf-col {
    display: flex;
    flex-direction: column;
}

/* Labels */
.pbf-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    display: block;
}

.pbf-req {
    color: #ef4444;
    margin-left: 2px;
}

/* Inputs & Selects */
.pbf-form input[type="text"],
.pbf-form input[type="email"],
.pbf-form input[type="tel"],
.pbf-form input[type="date"],
.pbf-form input[type="number"],
.pbf-form select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.pbf-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.pbf-form input:focus,
.pbf-form select:focus {
    border-color: #f26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.pbf-form input::placeholder {
    color: #9ca3af;
}

/* Date input fix */
.pbf-form input[type="date"] {
    color: #374151;
}

.pbf-form input[type="date"]:invalid {
    color: #9ca3af;
}

/* Locked position field */
.pbf-locked-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    box-sizing: border-box;
}

.pbf-locked-icon {
    font-size: 16px;
    line-height: 1;
}

.pbf-locked-text {
    flex: 1;
}

/* Error state */
.pbf-form input.pbf-error,
.pbf-form select.pbf-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.pbf-field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* ---- Bottom Row: CV + Privacy ---- */
.pbf-row-bottom {
    align-items: start;
    margin-bottom: 20px;
}

.pbf-col-privacy {
    display: flex;
    align-items: flex-start;
    padding-top: 50px;
}

/* ---- File Upload Zone ---- */
.pbf-file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pbf-file-upload:hover,
.pbf-file-upload.pbf-drag-over {
    border-color: #f26522;
    background: #fff8f3;
}

.pbf-file-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pbf-file-icon {
    font-size: 28px;
    color: #9ca3af;
    margin-bottom: 5px;
}

.pbf-file-text {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
}

.pbf-file-sub {
    font-size: 13px;
    color: #9ca3af;
}

.pbf-file-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-top: 2px;
}

.pbf-file-btn:hover {
    color: #f26522;
}

.pbf-file-info {
    margin-top: 8px;
}

.pbf-file-count {
    font-size: 12px;
    color: #9ca3af;
}

.pbf-file-hint {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

/* File selected state */
.pbf-file-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.pbf-file-selected i {
    color: #f26522;
    font-size: 18px;
}

.pbf-file-name {
    font-size: 14px;
    color: #374151;
    word-break: break-all;
    flex: 1;
}

.pbf-file-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 22px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    font-weight: 700;
}

.pbf-file-remove:hover {
    color: #dc2626;
}

/* ---- Checkbox ---- */
.pbf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    position: relative;
    user-select: none;
}

.pbf-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.pbf-checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
    margin-top: 1px;
}

.pbf-checkbox input:checked ~ .pbf-checkmark {
    background: #f26522;
    border-color: #f26522;
}

.pbf-checkbox input:checked ~ .pbf-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pbf-checkbox-text a {
    color: #374151;
    text-decoration: underline;
}

.pbf-checkbox-text a:hover {
    color: #f26522;
}

/* ---- Divider ---- */
.pbf-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 25px 0;
}

/* ---- Submit Button ---- */
.pbf-submit-row {
    text-align: center;
    padding: 10px 0;
}

.pbf-submit-btn {
    display: inline-block;
    background: #f4a261;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 55px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

.pbf-submit-btn:hover {
    background: #f26522;
    transform: translateY(-1px);
}

.pbf-submit-btn:active {
    transform: translateY(0);
}

.pbf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---- Messages ---- */
.pbf-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    animation: pbfFadeIn 0.3s ease;
}

.pbf-message.pbf-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.pbf-message.pbf-msg-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

@keyframes pbfFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .pbf-form {
        padding: 25px 20px;
    }

    .pbf-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pbf-col-privacy {
        padding-top: 0;
    }

    .pbf-title {
        font-size: 22px;
    }

    .pbf-submit-btn {
        width: 100%;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .pbf-form {
        padding: 20px 15px;
    }

    .pbf-file-upload {
        padding: 20px 15px;
        min-height: 100px;
    }

    .pbf-file-text {
        font-size: 16px;
    }
}
