/* step1.aspx - Checkout page styles */

/* Alışveriş Tipi / Radio cards - çerçevesiz */
.step1-radio-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}
.step1-radio-card:last-child {
    margin-bottom: 0;
}
/* Alışveriş Tipi: grid içinde yan yana (desktop) / alt alta (mobil) */
.step1-radio-cards-grid .step1-radio-card {
    margin-bottom: 0;
}
.step1-radio-card:hover {
    background-color: #fafafa;
}
.step1-radio-card.selected {
    background-color: #f8fafc;
}
.step1-radio-card input[type="radio"] {
    margin: 0;
    width: 20px;
    height: 20px;
    accent-color: #1f2937;
    cursor: pointer;
    flex-shrink: 0;
}
.step1-radio-card label,
.step1-radio-card .step1-radio-label {
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    flex: 1;
    margin: 0;
}

/* Üye bilgileri kartı */
.step1-member-info {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}
.step1-member-info:last-child {
    border-bottom: none;
}
.step1-member-line {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
}
.step1-member-line strong {
    color: #1f2937;
    font-weight: 600;
}

/* Adres kartları */
.step1-addr-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.step1-addr-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.step1-addr-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.step1-addr-card.selected {
    border-color: #1f2937;
    box-shadow: 0 0 0 2px #1f2937;
}
.step1-addr-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}
.step1-addr-card-line {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
.step1-addr-default-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: #eef2ff;
    color: #4f46e5;
}
.step1-addr-add-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.step1-addr-add-link:hover {
    color: #111827;
}

/* Ödeme seçenekleri radio */
.step1-pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.step1-pay-option:hover {
    border-color: #d1d5db;
    background-color: #fafafa;
}
.step1-pay-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #1f2937;
    cursor: pointer;
    flex-shrink: 0;
}
.step1-pay-option label {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    flex: 1;
    margin: 0;
}

/* Uyarı / Hata mesajları (server-side validation) */
.step1-validation-messages { margin-bottom: 1.5rem; }
.step1-validation-messages .messages {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}
.step1-validation-messages .error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 18px;
    color: #b91c1c;
}
.step1-validation-messages .error-msg ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.step1-validation-messages .error-msg li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}
.step1-validation-messages .error-msg li:last-child { margin-bottom: 0; }
.step1-validation-messages .error-msg li::before {
    content: "!";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #b91c1c;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

/* Client-side inline field errors */
.step1-field-error {
    font-size: 0.75rem;
    color: #b91c1c;
    margin-top: 4px;
}
.step1-input-error {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 1px #f87171;
}

/* Giriş Yap butonu - beyaz arka plan, siyah metin ve border */
.step1-login-btn,
button[id$="btnMyMemberLogin"],
input[id$="btnMyMemberLogin"] {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}
.step1-login-btn:hover,
button[id$="btnMyMemberLogin"]:hover,
input[id$="btnMyMemberLogin"]:hover {
    background-color: #f5f5f5 !important;
}

/* Safari select height fix */
.step1-ddl-city,
.step1-ddl-district,
select.step1-ddl-city,
select.step1-ddl-district {
    min-height: 42px;
    height: 42px;
    line-height: 1.5;
    padding-top: 8px;
    padding-bottom: 8px;
}
