/* === Unified, Safari-safe form system === */
.ui-form {
    --row-gap: 12px;
    --h: 46px;
}

.ui-form * {
    box-sizing: border-box;
}

/* Grid satırları: mobil tek kolon, md'de 2 kolon */
.ui-form .ui-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--row-gap);
}

@media (min-width:768px) {
    .ui-form .ui-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Alanlar: tamamen aynı yükseklik ve yayılma */
.ui-form .ui-field,
.ui-form .btn {
    height: var(--h);
    width: 100%;
}

/* Safari normalize */
.ui-field {
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    border: 1px solid rgba(209, 213, 219, .9);
    border-radius: .875rem;
    padding: .7rem 1rem;
    font-size: 15px;
    line-height: 1.25;
    color: #111827;
}

/* Focus halini koru */
.ui-field:focus {
    outline: 0;
    border-color: #fb923c;
    box-shadow: 0 0 0 .18rem rgba(251, 146, 60, .25);
}

/* Select ok'u ve sağ padding */
.ui-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    background-size: 14px;
    padding-right: 2.25rem;
}

/* Tarih input Safari düzeltmeleri */
input[type="date"].ui-field {
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
}

input[type="date"].ui-field::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.2em;
}

input[type="date"].ui-field::-webkit-calendar-picker-indicator {
    opacity: .8
}

/* Label’lar */
.ui-label {
    display: block;
    font-size: .75rem;
    color: #4b5563;
    margin-bottom: .25rem;
}

/* Buton ve kapsayıcı */
.ui-form .btn-wrap {
    display: flex;
    align-items: flex-end;
    /* butonu alan altına hizalar */
    justify-content: stretch;
}

@media (min-width:768px) {
    .ui-form .btn-wrap {
        justify-content: end;
    }
}

/* Turuncu buton: tek yerde kontrol */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, .05);
}

.btn-orange {
    background: #F27A1A;
    color: #fff;
}

.btn-orange:hover {
    background: #e16f17;
}

/* Taşmaları engelle (select uzun metin vs.) */
.min-w-0 {
    min-width: 0;
}