@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.sf-order-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 450px;
    margin: 20px auto;
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    overflow: hidden;
}

.sf-order-container form {
    margin: 0;
    padding: 0;
}

/* Form Başlığı (Sipariş Formu) */
.sf-header {
    background: #2d3748;
    color: #ffffff;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.sf-header .sf-icon {
    width: 20px;
    height: 20px;
}

/* Bölüm Başlıkları (Canlı Turuncu) */
.sf-section-title {
    background: #ff6600;
    /* Canlı Turuncu */
    color: #ffffff;
    /* Beyaz Yazı */
    padding: 10px 14px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0 10px 0;
    text-transform: capitalize;
}

.sf-section-title .sf-section-icon {
    width: 18px;
    height: 18px;
}

/* Seçenekler Grubu ve Seçenek Label */
.sf-options-group {
    padding: 0 14px;
    display: flex;
    flex-direction: column;
}

.sf-option-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 6px;
    border-bottom: 1px dashed #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sf-option-label:last-child {
    border-bottom: none;
}

.sf-option-label:hover {
    background-color: #f7fafc;
}

.sf-option-label input[type="radio"] {
    margin-top: 3px;
    accent-color: #ff6600;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sf-option-text {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.45;
}

.sf-bold-price {
    font-weight: 700;
    color: #1a202c;
}

.sf-payment-subtext {
    font-size: 13px;
    color: #718096;
    margin-top: 2px;
    display: inline-block;
}

/* Teslimat Bilgileri Inputları */
.sf-fields-group {
    padding: 5px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sf-field-row input[type="text"],
.sf-field-row input[type="email"],
.sf-field-row input[type="tel"],
.sf-field-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    color: #2d3748;
    box-sizing: border-box;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.sf-field-row input:focus,
.sf-field-row textarea:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

/* Şeffaf Kargo Evet/Hayır Butonları */
.sf-transparent-group {
    padding: 5px 14px 12px 14px;
    display: flex;
    gap: 20px;
}

.sf-radio-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #2d3748;
}

.sf-radio-inline input[type="radio"] {
    accent-color: #ff6600;
    width: 16px;
    height: 16px;
}

/* Onaylama Bilgileri */
.sf-terms-title {
    padding: 10px 14px 0 14px;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
}

.sf-terms-group {
    padding: 5px 14px 15px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
    padding: 4px 0;
}

.sf-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #ff6600;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Sipariş Ver Butonu (Turuncu Renk) */
.sf-submit-wrapper {
    padding: 10px 14px 20px 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sf-order-container #sf-submit-btn,
#sf-submit-btn {
    background-color: #ff6600 !important;
    background: #ff6600 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.sf-order-container #sf-submit-btn:hover,
#sf-submit-btn:hover {
    background-color: #cc5200 !important;
    background: #cc5200 !important;
    box-shadow: 0 4px 8px rgba(204, 82, 0, 0.4) !important;
    transform: translateY(-1px) !important;
}

.sf-order-container #sf-submit-btn:active,
#sf-submit-btn:active {
    transform: translateY(1px) !important;
}

/* Spinner / Yükleniyor Efekti */
.sf-loader {
    width: 24px;
    height: 24px;
    border: 3px solid #cbd5e0;
    border-top: 3px solid #ff6600;
    border-radius: 50%;
    animation: sf-spin 0.8s linear infinite;
}

@keyframes sf-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Yanıt Mesajları */
.sf-response-message {
    margin: 10px 14px 20px 14px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 4px;
}

.sf-response-message.sf-success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.sf-response-message.sf-error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.sf-error-msg {
    padding: 15px;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 14px;
}

/* Havale Banka Hesap Detayları ve Diğer Ödeme Bilgileri */
.sf-bank-details,
.sf-payment-details {
    margin: 8px 14px 12px 14px;
    padding: 12px;
    background-color: #f7fafc;
    border-left: 3px solid #ff6600;
    border-radius: 4px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Mobil Uyumluluk (Mobil Cihazlar İçin Metin ve Dokunma Boyutları) */
@media screen and (max-width: 768px) {
    .sf-order-container {
        margin: 10px auto;
        border-radius: 8px;
    }

    .sf-header {
        font-size: 17px;
        padding: 16px;
    }

    .sf-header .sf-icon {
        width: 22px;
        height: 22px;
    }

    .sf-section-title {
        font-size: 15px;
        padding: 12px 14px;
    }

    .sf-section-title .sf-section-icon {
        width: 20px;
        height: 20px;
    }

    .sf-option-label {
        padding: 14px 8px;
        gap: 12px;
    }

    .sf-option-label input[type="radio"] {
        width: 18px;
        height: 18px;
        margin-top: 2px;
    }

    .sf-option-text {
        font-size: 15px;
        line-height: 1.45;
    }

    .sf-bold-price {
        font-size: 15px;
    }

    .sf-payment-subtext {
        font-size: 13.5px;
        margin-top: 4px;
    }

    .sf-fields-group {
        padding: 8px 14px;
        gap: 12px;
    }

    .sf-field-row input[type="text"],
    .sf-field-row input[type="email"],
    .sf-field-row input[type="tel"],
    .sf-field-row textarea {
        font-size: 16px; /* Mobil ekranlarda otomatik yakınlaştırmayı (zoom) önler ve okumayı kolaylaştırır */
        padding: 12px 14px;
    }

    .sf-transparent-group {
        padding: 8px 14px 14px 14px;
        gap: 24px;
    }

    .sf-radio-inline {
        font-size: 15px;
        gap: 8px;
    }

    .sf-radio-inline input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    .sf-terms-title {
        font-size: 15px;
        padding: 12px 14px 4px 14px;
    }

    .sf-checkbox-label {
        font-size: 14px;
        line-height: 1.45;
        padding: 6px 0;
        gap: 10px;
    }

    .sf-checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }

    .sf-bank-details,
    .sf-payment-details {
        font-size: 13.5px;
        line-height: 1.6;
        padding: 14px;
    }

    .sf-submit-wrapper {
        padding: 12px 14px 22px 14px;
    }

    .sf-order-container #sf-submit-btn,
    #sf-submit-btn {
        font-size: 16px !important;
        padding: 14px 24px !important;
        width: 100% !important;
        text-align: center;
    }

    .sf-response-message {
        font-size: 14px;
    }
}