/* Promigo Teklif Form - İzole CSS */
:root {
    --p-primary: #3dbd70;
    --p-primary-dark: #2d8f54;
    --p-muted: #6c757d;
    --p-border: #dee2e6;
    --p-bg-light: #f8f9fa;
    --p-text: #212529;
    --p-text-light: #6c757d;
    --p-success: #28a745;
    --p-danger: #dc3545;
    --p-warning: #ffc107;
    --p-info: #17a2b8;
    --p-white: #ffffff;
    --p-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --p-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --p-border-radius: 0.375rem;
    --p-border-radius-lg: 0.5rem;
    --p-transition: all 0.15s ease-in-out;
}

/* Ana Container */
.promigo-teklif-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--p-text);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
}



/* Hızlı Teslimat ve Dönüş Özellikleri */
.promigo-teklif-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.promigo-teklif-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
    background: var(--p-white);
    border-radius: var(--p-border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.promigo-teklif-feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--p-white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promigo-teklif-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.promigo-teklif-feature-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--p-text-dark);
    line-height: 1.2;
}

.promigo-teklif-feature-text span {
    font-size: 0.8rem;
    color: var(--p-text-muted);
    line-height: 1.2;
}

/* Başlık Alanı */
.promigo-teklif-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--p-text);
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.promigo-teklif-subtitle {
    font-size: 1.1rem;
    color: var(--p-text-light);
    text-align: center;
    margin: 0 0 2rem 0;
}

/* Layout */
.promigo-teklif-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sol Kart - Talep Özeti */
.promigo-teklif-summary {
    background: var(--p-white);
    border-radius: var(--p-border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.promigo-teklif-summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--p-text);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #28a745;
}

/* Boş Sepet */
.promigo-teklif-empty-cart {
    text-align: center;
    padding: 2rem;
    background: var(--p-bg-light);
    border-radius: var(--p-border-radius);
    border: 2px dashed var(--p-border);
}

.promigo-teklif-empty-cart p {
    margin: 0 0 1rem 0;
    color: var(--p-text-light);
    font-size: 1.1rem;
}

.promigo-teklif-shop-link {
    display: inline-block;
    background: var(--p-primary);
    color: var(--p-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--p-border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--p-transition);
}

.promigo-teklif-shop-link:hover {
    background: var(--p-primary-dark);
    color: var(--p-white);
    text-decoration: none;
}

/* Sepet Ürünleri */
.promigo-teklif-cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.promigo-teklif-cart-item {
    border: 1px solid var(--p-border);
    border-radius: var(--p-border-radius);
    padding: 1rem;
    background: var(--p-white);
    position: relative;
    transition: var(--p-transition);
}

.promigo-teklif-cart-item:hover {
    border-color: var(--p-primary);
    box-shadow: 0 4px 12px rgba(61, 189, 112, 0.1);
}

.promigo-teklif-remove-item:hover {
    color: red !important;
    background: transparent !important;
}

.promigo-teklif-product-image {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.promigo-teklif-remove-item {
    position: absolute !important;
    top: 5px !important;
    left: 5px !important;
    background: transparent !important;
    color: black !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: bold !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    /* Tema CSS'ini override et */
    align-items: unset !important;
    justify-content: unset !important;
    text-decoration: none !important;
    text-align: center !important;
    vertical-align: middle !important;
    user-select: none !important;
    transition: none !important;
    border-radius: 0 !important;
    min-height: unset !important;
    min-width: unset !important;
}

.promigo-teklif-remove-item:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.promigo-teklif-remove-item:active {
    transform: scale(0.95);
}



/* Ürün Bilgileri */
.promigo-teklif-product {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.promigo-teklif-product-image {
    flex-shrink: 0;
}

.promigo-teklif-product-image img {
    width: 100%;
    height: 100%;
    border-radius: var(--p-border-radius);
    object-fit: cover;
    border: 1px solid var(--p-border);
    background: var(--p-bg-light);
    display: block;
    transition: var(--p-transition);
}

.promigo-teklif-product-image img[src*="default-product"] {
    background: var(--p-bg-light);
    padding: 8px;
    box-sizing: border-box;
}

.promigo-teklif-product-info {
    flex: 1;
    min-width: 0;
}

.promigo-teklif-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--p-text);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.promigo-teklif-product-link {
    color: var(--p-text) !important;
    text-decoration: none !important;
    transition: var(--p-transition);
    display: block;
}

.promigo-teklif-product-link:hover {
    color: var(--p-primary) !important;
    text-decoration: none !important;
}

.promigo-teklif-product-details {
    display: flex;
    flex-direction: column;
    gap: 0.10rem;
}

.promigo-teklif-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.promigo-teklif-detail-label {
    font-weight: 500;
    color: var(--p-text-light);
    font-size: 0.9rem;
}
x
.promigo-teklif-detail-value {
    font-weight: 600;
    color: var(--p-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promigo-teklif-discount-badge {
    background: var(--p-success);
    color: var(--p-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.promigo-teklif-item-total {
    font-weight: 700;
    color: var(--p-primary);
    font-size: 1rem;
}

/* Bölücü Çizgi */
.promigo-teklif-divider {
    height: 1px;
    background: var(--p-border);
    margin: 1.5rem 0;
}

/* Ara Toplam */
.promigo-teklif-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.promigo-teklif-subtotal-label {
    color: var(--p-text);
}

.promigo-teklif-subtotal-value {
    color: var(--p-primary);
    font-size: 1.25rem;
}

/* Not */
.promigo-teklif-note {
    background: var(--p-bg-light);
    border: 1px solid var(--p-border);
    border-radius: var(--p-border-radius);
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--p-text-light);
    line-height: 1.4;
    margin-top: 1rem;
}

/* Sağ Kart - Form */
.promigo-teklif-form-container {
    background: var(--p-white);
    border-radius: var(--p-border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.promigo-teklif-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Form Satırları */
.promigo-teklif-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Alanları */
.promigo-teklif-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.promigo-teklif-form-field label {
    font-weight: 500;
    color: var(--p-text);
    font-size: 0.9rem;
}

.promigo-teklif-form-field input,
.promigo-teklif-form-field textarea {
    padding: 0.75rem;
    border: 1px solid var(--p-border);
    border-radius: var(--p-border-radius);
    font-size: 0.9rem;
    transition: var(--p-transition);
    background: var(--p-white);
}

.promigo-teklif-form-field input:focus,
.promigo-teklif-form-field textarea:focus {
    outline: none;
    border-color: var(--p-primary);
    box-shadow: 0 0 0 0.2rem rgba(61, 189, 112, 0.25);
}

.promigo-teklif-form-field input::placeholder,
.promigo-teklif-form-field textarea::placeholder {
    color: var(--p-text-light);
}

/* Telefon Input Stilleri */
.promigo-teklif-phone-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--p-border);
    border-radius: var(--p-border-radius);
    background: var(--p-white);
    transition: var(--p-transition);
}

.promigo-teklif-phone-input:focus-within {
    border-color: var(--p-primary);
    box-shadow: 0 0 0 0.2rem rgba(61, 189, 112, 0.25);
}

.promigo-teklif-phone-prefix {
    padding: 0.75rem 1rem;
    background: var(--p-bg-light);
    color: var(--p-text);
    font-weight: 500;
    border-right: 1px solid var(--p-border);
    border-radius: var(--p-border-radius) 0 0 var(--p-border-radius);
    user-select: none;
}

.promigo-teklif-phone-input input {
    border: none !important;
    background: transparent !important;
    padding: 0.75rem 1rem !important;
    flex: 1;
    border-radius: 0 var(--p-border-radius) var(--p-border-radius) 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.promigo-teklif-phone-input input:focus {
    border: none !important;
    box-shadow: none !important;
}

.promigo-teklif-form-field textarea {
    overflow: auto !important;
    padding: 10px 15px !important;
    min-height: 100px !important;
    resize: vertical !important;
}

/* Dosya Yükleme Bilgisi */
.promigo-teklif-file-info {
    font-size: 0.8rem;
    color: var(--p-text-light);
    margin-top: 0.5rem;
    text-align: center;
}

/* Gizlilik Notu */
.promigo-teklif-privacy {
    font-size: 0.8rem;
    color: var(--p-text-light);
    text-align: center;
    padding: 0.5rem;
    background: var(--p-bg-light);
    border-radius: var(--p-border-radius);
}

/* Form Başlığı */
.promigo-teklif-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--p-text);
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #28a745;
}

.promigo-teklif-form-subtitle {
    font-size: 0.9rem;
    color: var(--p-text-light);
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

/* KDV Toggle */
.promigo-teklif-vat-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin: 1rem 0;
}

.promigo-teklif-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.promigo-teklif-toggle-input {
    display: none;
}

.promigo-teklif-toggle-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: var(--p-border);
    border-radius: 20px;
    transition: var(--p-transition);
}

.promigo-teklif-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--p-white);
    border-radius: 50%;
    transition: var(--p-transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.promigo-teklif-toggle-input:checked + .promigo-teklif-toggle-slider {
    background: var(--p-primary);
}

.promigo-teklif-toggle-input:checked + .promigo-teklif-toggle-slider::before {
    transform: translateX(20px);
}

.promigo-teklif-toggle-label {
    font-size: 0.9rem;
    color: var(--p-text);
    font-weight: 500;
}

.promigo-teklif-vat-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--p-primary);
}

/* Teslim Süresi */
.promigo-teklif-delivery {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
    margin: 1rem 0;
}

.promigo-teklif-delivery-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--p-text);
}

.promigo-teklif-delivery-value {
    font-size: 0.85rem;
    color: var(--p-text-light);
    line-height: 1.4;
}

/* Drag & Drop Dosya Yükleme */
.promigo-teklif-drag-drop {
    position: relative;
}

.promigo-teklif-drag-drop input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.promigo-teklif-drag-area {
    border: 2px dashed var(--p-border);
    border-radius: var(--p-border-radius);
    padding: 2rem 1rem;
    text-align: center;
    background: var(--p-bg-light);
    transition: var(--p-transition);
    cursor: pointer;
}

.promigo-teklif-drag-area:hover,
.promigo-teklif-drag-area.dragover {
    border-color: var(--p-primary);
    background: rgba(61, 189, 112, 0.05);
}

.promigo-teklif-drag-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.promigo-teklif-drag-text {
    font-size: 0.9rem;
    color: var(--p-text-light);
    font-weight: 500;
}

/* Dosya Seçildiğinde */
.promigo-teklif-file-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.promigo-teklif-file-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.promigo-teklif-file-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--p-text);
    text-align: center;
    word-break: break-word;
    max-width: 100%;
}

.promigo-teklif-file-size {
    font-size: 0.8rem;
    color: var(--p-text-light);
}

/* KVKK Onay Kutusu */
.promigo-teklif-consent {
    margin: 1.5rem 0;
}

.promigo-teklif-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.promigo-teklif-checkbox input[type="checkbox"] {
    display: none;
}

.promigo-teklif-checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--p-border);
    border-radius: 3px;
    background: var(--p-white);
    position: relative;
    transition: var(--p-transition);
}

.promigo-teklif-checkbox input[type="checkbox"]:checked + .promigo-teklif-checkbox-custom {
    background: linear-gradient(to right, #4CB8C4, #3CD3AD);
    border-color: #4CB8C4;
}

.promigo-teklif-checkbox input[type="checkbox"]:checked + .promigo-teklif-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--p-white);
    font-size: 12px;
    font-weight: bold;
}

.promigo-teklif-consent-text {
    font-size: 0.85rem;
    color: var(--p-text);
    line-height: 1.4;
}

/* Form Aksiyonları */
.promigo-teklif-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.promigo-teklif-submit-btn {
    background-image: linear-gradient(to right, #4CB8C4 0%, #3CD3AD 51%, #4CB8C4 100%) !important;
    background-size: 200% auto !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    border-radius: 40px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: 0.5s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    height: 52px !important;
    box-shadow: 0 0 20px #eee !important;
    outline: none !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    opacity: 0.5;
    text-transform: uppercase !important;
}

.promigo-teklif-submit-btn:hover {
    background-position: right center;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 0 25px #ddd;
}

.promigo-teklif-submit-btn:active {
    transform: translateY(0);
}

.promigo-teklif-submit-btn:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
    pointer-events: none;
}

.promigo-teklif-submit-icon {
    font-size: 1.1rem;
    transition: var(--p-transition);
}

.promigo-teklif-submit-btn:hover .promigo-teklif-submit-icon {
    transform: translateX(3px);
}

/* Toast Mesajları */
.promigo-teklif-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: var(--p-border-radius);
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--p-transition);
}

.promigo-teklif-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.promigo-teklif-toast.success {
    background: var(--p-success);
    color: var(--p-white);
}

.promigo-teklif-toast.error {
    background: var(--p-danger);
    color: var(--p-white);
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .promigo-teklif-layout {
        gap: 1.5rem;
    }
    
    .promigo-teklif-container {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .promigo-teklif-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .promigo-teklif-features {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .promigo-teklif-feature {
        justify-content: flex-start;
        width: 100%;
    }
    
    .promigo-teklif-form-row {
        grid-template-columns: 1fr;
    }
    
    .promigo-teklif-title {
        font-size: 1.75rem;
    }
    
    .promigo-teklif-subtitle {
        font-size: 1rem;
    }
    
    .promigo-teklif-container {
        padding: 1rem;
    }
    
    .promigo-teklif-summary,
    .promigo-teklif-form-container {
        padding: 1.25rem;
    }
    
    .promigo-teklif-form-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .promigo-teklif-product {
        flex-direction: column;
        text-align: center;
    }
    
    .promigo-teklif-product-image {
        align-self: center;
    }
    
    .promigo-teklif-file-upload {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .promigo-teklif-file-btn {
        align-self: flex-start;
    }
    
    .promigo-teklif-toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .promigo-teklif-remove-item {
        width: 20px;
        height: 20px;
        opacity: 1;
        transform: scale(1);
        top: -6px;
        left: -6px;
    }
    
    .promigo-teklif-remove-icon {
        width: 12px;
        height: 12px;
    }
}

/* Loading State */
.promigo-teklif-loading {
    position: relative;
    pointer-events: none;
}

.promigo-teklif-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--p-border-radius-lg);
}

.promigo-teklif-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--p-border);
    border-top: 2px solid var(--p-primary);
    border-radius: 50%;
    animation: promigo-spin 1s linear infinite;
    z-index: 1;
}

@keyframes promigo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Validation States */
.promigo-teklif-form-field.error input,
.promigo-teklif-form-field.error textarea {
    border-color: var(--p-danger);
}

.promigo-teklif-form-field.error .promigo-teklif-error-message {
    color: var(--p-danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.promigo-teklif-form-field.success input,
.promigo-teklif-form-field.success textarea {
    border-color: var(--p-success);
}
