/* Aşama 03A-C: Formlar, hata sayfaları ve küçük yardımcı bileşenler */

.form-hero-grid {
    align-items: center;
}

.form-hero-icon {
    display: grid;
    width: 154px;
    height: 154px;
    place-items: center;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%,rgba(54,182,255,.48),transparent 35%),
        linear-gradient(145deg,var(--brand-950),var(--brand-600));
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-4deg);
}

.form-hero-svg {
    width: 70px;
    height: 70px;
}

.form-section {
    background: var(--surface-soft);
}

.form-page-grid {
    display: grid;
    grid-template-columns: minmax(0,.78fr) minmax(420px,1.22fr);
    gap: clamp(30px,6vw,74px);
    align-items: start;
}

.form-info-column {
    display: grid;
    gap: 18px;
}

.form-info-card,
.form-page-content,
.form-security-note,
.public-form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-info-card,
.form-page-content,
.public-form-card {
    padding: clamp(24px,4vw,40px);
}

.form-process-list {
    display: grid;
    gap: 22px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.form-process-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 15px;
}

.form-process-list li > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--brand-700);
    background: var(--brand-100);
    border-radius: 14px;
    font-size: .78rem;
    font-weight: 850;
}

.form-process-list strong {
    display: block;
    margin-bottom: 4px;
}

.form-process-list p {
    margin: 0;
    color: var(--ink-600);
    font-size: .84rem;
}

.form-page-content {
    color: var(--ink-700);
}

.form-page-content > :last-child {
    margin-bottom: 0;
}

.form-security-note {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
}

.form-security-note > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--success);
    background: var(--success-soft);
    border-radius: 13px;
}

.form-security-note svg {
    width: 22px;
    height: 22px;
}

.form-security-note strong {
    display: block;
    margin-bottom: 4px;
}

.form-security-note p {
    margin: 0;
    color: var(--ink-600);
    font-size: .82rem;
}

.public-form-card {
    position: relative;
}

.public-form-head {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.public-form-head h2 {
    margin-bottom: 10px;
    font-size: clamp(1.65rem,3vw,2.4rem);
}

.public-form-head p {
    margin: 0;
    color: var(--ink-600);
}

.public-form {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.public-form-field {
    min-width: 0;
}

.public-form-field.field-type-textarea,
.public-form-field.field-type-file,
.public-form-field.field-type-checkbox,
.public-form-field.field-type-radio,
.form-submit-row {
    grid-column: 1 / -1;
}

.public-form-field > label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-800);
    font-size: .86rem;
    font-weight: 800;
}

.public-form-field > label strong,
.public-checkbox strong {
    color: var(--danger);
}

.public-form-field input,
.public-form-field select,
.public-form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--ink-900);
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.public-form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.public-form-field input:hover,
.public-form-field select:hover,
.public-form-field textarea:hover {
    border-color: var(--ink-300);
}

.public-form-field input:focus,
.public-form-field select:focus,
.public-form-field textarea:focus {
    outline: 0;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(7,148,239,.12);
}

.public-form-field input::placeholder,
.public-form-field textarea::placeholder {
    color: var(--ink-400, #8f9daa);
}

.field-help,
.public-form-field > small,
[data-file-name] {
    display: block;
    margin-top: 6px;
    color: var(--ink-500);
    font-size: .75rem;
}

.public-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 650 !important;
}

.public-checkbox input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--brand-700);
}

.public-radio-group {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.public-radio-group label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.public-radio-group input {
    width: auto;
    min-height: auto;
    accent-color: var(--brand-700);
}

.file-upload-control {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background:
        linear-gradient(180deg,var(--brand-50),var(--white));
    border: 1px dashed var(--brand-300);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.file-upload-control:hover {
    background: var(--brand-50);
}

.file-upload-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    overflow: hidden;
    opacity: 0;
}

.file-upload-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--brand-700);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.file-upload-icon svg {
    width: 23px;
    height: 23px;
}

.file-upload-control strong,
.file-upload-control small {
    display: block;
}

.file-upload-control small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: .75rem;
}

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.form-submit-row p {
    margin: 0;
    color: var(--ink-500);
    font-size: .74rem;
}

.form-errors-summary {
    margin-bottom: 24px;
    padding: 18px;
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid #f3caca;
    border-radius: var(--radius-sm);
}

.form-errors-summary strong {
    display: block;
    margin-bottom: 6px;
}

.form-errors-summary ul {
    margin: 0;
    padding-left: 18px;
}

.form-success {
    padding: clamp(28px,5vw,50px);
    color: var(--ink-900);
    background:
        radial-gradient(circle at 90% 10%,rgba(25,122,80,.12),transparent 32%),
        var(--success-soft);
    border: 1px solid #bde5d2;
    border-radius: var(--radius-lg);
    text-align: center;
}

.form-success-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    margin: 0 auto 22px;
    color: var(--white);
    background: var(--success);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(25,122,80,.22);
}

.form-success-icon svg {
    width: 34px;
    height: 34px;
}

.form-success h3 {
    font-size: 1.8rem;
}

.form-success p {
    color: var(--ink-700);
}

.form-reference {
    display: inline-flex;
    flex-direction: column;
    margin: 14px 0 24px;
    padding: 14px 24px;
    background: var(--white);
    border: 1px solid #bde5d2;
    border-radius: var(--radius-sm);
}

.form-reference span {
    color: var(--ink-500);
    font-size: .72rem;
}

.form-reference strong {
    color: var(--success);
    font-size: 1.15rem;
    letter-spacing: .04em;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Error pages */

.error-page {
    min-height: 100vh;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 15%,rgba(7,148,239,.34),transparent 31%),
        linear-gradient(135deg,var(--brand-950),var(--brand-800));
}

.error-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 30px;
}

.error-card {
    width: min(720px,100%);
    padding: clamp(32px,7vw,72px);
    color: var(--ink-900);
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.error-brand {
    justify-content: center;
    margin-bottom: 30px;
}

.error-code {
    color: var(--brand-100);
    font-family: var(--font-display);
    font-size: clamp(6rem,18vw,12rem);
    font-weight: 900;
    line-height: .75;
    letter-spacing: -.08em;
}

.error-card h1 {
    margin: 12px 0 16px;
    font-size: clamp(2rem,5vw,3.3rem);
}

.error-card p {
    color: var(--ink-600);
}

.error-card code {
    display: block;
    margin: 22px 0;
    padding: 12px;
    overflow-wrap: anywhere;
    color: var(--ink-600);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .form-page-grid {
        grid-template-columns: 1fr;
    }

    .form-info-column {
        order: 2;
    }

    .public-form-card {
        order: 1;
    }
}

@media (max-width: 650px) {
    .form-hero-icon {
        width: 112px;
        height: 112px;
        border-radius: 30px;
    }

    .form-hero-svg {
        width: 52px;
        height: 52px;
    }

    .public-form {
        grid-template-columns: 1fr;
    }

    .public-form-field {
        grid-column: 1;
    }

    .public-radio-group {
        grid-template-columns: 1fr;
    }

    .form-submit-row {
        display: block;
    }

    .form-submit-row .button {
        width: 100%;
    }

    .form-submit-row p {
        margin-top: 14px;
    }

    .error-actions {
        display: grid;
    }

    .error-actions .button {
        width: 100%;
    }
}

/* Hotfix 06C-04: robotlara karşı tıklamayla açılan iletişim bilgileri */
.protected-contact {
    display:inline-flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    max-width:100%;
}

.protected-contact-button {
    display:inline-flex;
    align-items:center;
    min-height:38px;
    padding:7px 12px;
    color:var(--brand-800);
    background:var(--brand-50);
    border:1px solid var(--brand-200);
    border-radius:999px;
    font:inherit;
    font-size:.9em;
    font-weight:700;
    line-height:1.2;
    cursor:pointer;
}

.protected-contact-button:hover,
.protected-contact-button:focus-visible {
    color:var(--brand-950);
    background:var(--brand-100);
    border-color:var(--brand-400);
}

.protected-contact-button:disabled {
    cursor:wait;
    opacity:.72;
}

.protected-contact-link {
    overflow-wrap:anywhere;
    font-weight:700;
}

.protected-contact-noscript,
.protected-contact-error {
    display:block;
    color:var(--ink-600);
    font-size:.82em;
}

