/* =============================================
   Başvuru Formu — Styles
   ============================================= */

/* Form wrapper — %60 genişlik, ortalı */
.wpcf7-form,
.bf-form-wrap .wpcf7-form {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

@media (max-width: 1024px) {
    .wpcf7-form,
    .bf-form-wrap .wpcf7-form {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .wpcf7-form,
    .bf-form-wrap .wpcf7-form {
        width: 100%;
    }
}

/* --- Section başlıkları --- */
.bf-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d6cb4;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 8px;
    margin: 28px 0 24px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bf-section-title p {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2d6cb4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- Field wrapper --- */
.bf-field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bf-field label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.bf-field .required-star {
    color: #e53e3e;
    margin-left: 2px;
}

/* --- Input, select, textarea genel --- */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea,
.bf-select {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.bf-select:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74,144,217,0.12);
}

.wpcf7-form textarea {
    min-height: 110px;
    resize: vertical;
}

/* Select arrow */
.wpcf7-form select,
.bf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* --- 2 kolonlu grid --- */
.bf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .bf-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Dosya yükleme --- */
.bf-file-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.bf-file-label {
    font-size: 16px;
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bf-file-optional {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
}

.wpcf7-form input[type="file"] {
    font-size: 13px;
    padding: 6px 0;
    color: #555;
    cursor: pointer;
}

.bf-file-hint {
    font-size: 11px;
    color: #aaa;
}

/* --- Submit butonu --- */

.wpcf7-form input[type="submit"],
.wpcf7-submit {
    display: block;
    width: 50%;
    margin: 40px auto 0;
    padding: 13px 24px;
    background: #1e3a5f;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.wpcf7-form input[type="submit"]:hover {
    background: #2d5a9e;
}

/* --- Validation mesajları --- */
.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #e53e3e;
    margin-top: 3px;
    display: block;
}

.wpcf7-not-valid input,
.wpcf7-not-valid select,
.wpcf7-not-valid textarea {
    border-color: #e53e3e !important;
}

.wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 7px;
    font-size: 14px;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background: #f0fdf4;
    color: #166534;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #fef2f2;
    color: #991b1b;
}

/* Dosya alanları ikili grid */
.bf-files-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .bf-files-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern file input */
.bf-file-wrap input[type="file"] {
    display: none;
}

.bf-file-label-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f4f6f9;
    border: 1px dashed #c0c8d8;
    border-radius: 7px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
    justify-content: center;
}

.bf-file-label-btn:hover {
    background: #e8edf5;
    border-color: #4a90d9;
    color: #2d6cb4;
}

.bf-file-selected {
    font-size: 12px;
    color: #4a90d9;
    margin-top: 4px;
    min-height: 16px;
}
