/* Fiyatlandırma Hesaplayıcısı Ana Stilleri */
.fiyatlandirma-hesaplayici {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hesaplayici-container {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: #2d3748;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.hesaplayici-header {
    text-align: center;
    margin-bottom: 40px;
}

.hesaplayici-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1a202c;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.02em;
}

.hesaplayici-header p {
    font-size: 1.1rem;
    color: #718096;
    margin: 0;
}

/* Daire Seçici */
.daire-secici {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.daire-label {
    text-align: center;
    margin-bottom: 30px;
}

.daire-sayisi {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2b6cb0;
}

.slider-container {
    position: relative;
    margin: 30px 0;
}

.daire-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.daire-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2b6cb0;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.daire-slider::-webkit-slider-thumb:hover {
    background: #2c5282;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.daire-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2b6cb0;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #718096;
}

.fiyat-bilgisi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.fiyat-detay {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.daire-basi-fiyat {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2b6cb0;
}

.fiyat-aciklama {
    font-size: 1rem;
    color: #718096;
}

.toplam-fiyat {
    text-align: right;
}

.toplam-label {
    display: block;
    font-size: 0.9rem;
    color: #718096;
}

.toplam-tutar {
    font-size: 1.6rem;
    font-weight: 600;
    color: #38a169;
}

/* Ek Ürünler */
.ek-urunler-section {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.ek-urunler-section h3 {
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    color: #1a202c;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.01em;
}

.ek-urunler-section p {
    margin: 0 0 25px 0;
    color: #718096;
}

.ek-urunler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ek-urun-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    transition: all 0.2s ease;
}

.ek-urun-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ek-urun-item.selected {
    border-color: #2b6cb0;
    background: #ebf8ff;
}

.ek-urun-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    margin: 0;
}

.ek-urun-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.ek-urun-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: #2b6cb0;
    border-color: #2b6cb0;
}

.ek-urun-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 11px;
}

.urun-bilgi {
    flex: 1;
}

.urun-adi {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a202c;
}

.urun-fiyat {
    font-size: 1rem;
    font-weight: 600;
    color: #2b6cb0;
    margin-bottom: 8px;
}

.urun-aciklama {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
}

/* Hesaplayıcı Footer */
.hesaplayici-footer {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
}

.final-fiyat {
    text-align: center;
    margin-bottom: 25px;
}

.final-fiyat-content {
    display: inline-block;
    background: #ffffff;
    padding: 25px 35px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-width: 320px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.fiyat-detaylari {
    text-align: left;
}

.ara-toplam,
.kdv-detay,
.genel-toplam {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ara-toplam {
    font-size: 1rem;
    color: #718096;
}

.kdv-detay {
    font-size: 1rem;
    color: #2b6cb0;
}

.genel-toplam {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    border-top: 2px solid #2b6cb0;
    border-bottom: none;
    margin-top: 8px;
    padding: 16px 12px;
    background: #f7fafc;
    border-radius: 6px;
}

.final-label {
    font-size: 1.1rem;
    color: #1a365d;
    font-weight: 600;
}

.final-tutar {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a365d;
}

.ara-toplam-tutar,
.kdv-tutar {
    font-weight: 600;
    color: #4a5568;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2b6cb0;
    color: #ffffff;
    border: 1px solid #2b6cb0;
    box-shadow: 0 2px 4px rgba(43, 108, 176, 0.2);
}

.btn-primary:hover {
    background: #2c5282;
    border-color: #2c5282;
    box-shadow: 0 4px 8px rgba(43, 108, 176, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* Form Row Layout */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: #f7fafc;
    border-color: #2b6cb0;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    accent-color: #2b6cb0;
}

.radio-text {
    font-size: 0.95rem;
    color: #4a5568;
}

/* Modal Ek Ürünler Stilleri */
.modal-ek-urunler {
    margin-top: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.modal-ek-urunler h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
}

.modal-ek-urunler-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.modal-ek-urun-item {
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.modal-ek-urun-item:hover {
    border-color: #2b6cb0;
    box-shadow: 0 2px 4px rgba(43, 108, 176, 0.1);
}

.modal-ek-urun-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    cursor: pointer;
    margin: 0;
}

.modal-ek-urun-checkbox input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    accent-color: #2b6cb0;
    transform: scale(1.1);
}

.urun-bilgi {
    flex: 1;
}

.urun-adi {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.urun-fiyat {
    color: #2b6cb0;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.urun-aciklama {
    color: #718096;
    font-size: 0.85rem;
    line-height: 1.4;
}

.modal-ek-urun-item.selected {
    border-color: #2b6cb0;
    background: #ebf8ff;
}

.modal-ek-urun-checkbox input[type="checkbox"]:checked + .checkmark + .urun-bilgi .urun-adi {
    color: #2b6cb0;
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: #2b6cb0;
    color: white;
    padding: 20px 30px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.secilen-bilgiler {
    background: #f7fafc;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #2b6cb0;
}

.secilen-bilgiler h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.secilen-bilgiler p {
    margin: 8px 0;
    color: #666;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* Başarı Modal */
.success-content {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #38a169;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 20px;
}

.success-content h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.success-content p {
    color: #666;
    margin: 0 0 30px 0;
    font-size: 1.1rem;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .hesaplayici-container {
        padding: 20px;
        margin: 0;
        border-radius: 6px;
    }
    
    .hesaplayici-header {
        margin-bottom: 30px;
    }
    
    .hesaplayici-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hesaplayici-header p {
        font-size: 1rem;
    }
    
    /* Daire Seçici Mobil */
    .daire-secici {
        margin-bottom: 25px;
    }
    
    .daire-label {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .daire-sayisi {
        font-size: 1.8rem;
    }
    
    .daire-slider {
        width: 100%;
        height: 8px;
    }
    
    .slider-labels {
        font-size: 0.8rem;
        margin-top: 8px;
    }
    
    .fiyat-bilgisi {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .fiyat-detay {
        order: 2;
    }
    
    .toplam-fiyat {
        order: 1;
        background: #f7fafc;
        padding: 15px;
        border-radius: 6px;
    }
    
    /* Ek Ürünler Mobil */
    .ek-urunler-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .ek-urunler-section h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .ek-urunler-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ek-urun-item {
        padding: 15px;
    }
    
    .ek-urun-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ek-urun-checkbox input[type="checkbox"] {
        margin: 0;
        transform: scale(1.2);
    }
    
    .ek-urun-bilgi {
        width: 100%;
    }
    
    .ek-urun-adi {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .ek-urun-fiyat {
        font-size: 0.9rem;
    }
    
    .ek-urun-aciklama {
        font-size: 0.85rem;
        margin-top: 5px;
    }
    
    /* Final Fiyat Mobil */
    .final-fiyat {
        margin-bottom: 20px;
    }
    
    .final-fiyat-content {
        padding: 20px;
        min-width: auto;
        width: 100%;
    }
    
    .ara-toplam,
    .kdv-detay,
    .genel-toplam {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    .genel-toplam {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .final-tutar {
        font-size: 1.4rem;
    }
    
    /* Butonlar Mobil */
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    /* Modal Mobil */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    /* Form Mobil */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 12px;
        font-size: 16px; /* iOS zoom önleme */
    }
    
    /* Radio Group Mobil */
    .radio-group {
        gap: 8px;
    }
    
    .radio-label {
        padding: 12px 10px;
    }
    
    .radio-text {
        font-size: 0.9rem;
    }
    
    /* Modal Ek Ürünler Mobil */
    .modal-ek-urunler {
        padding: 15px;
    }
    
    .modal-ek-urunler h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .modal-ek-urun-checkbox {
        padding: 12px;
    }
    
    .modal-ek-urun-checkbox input[type="checkbox"] {
        transform: scale(1.1);
    }
    
    .urun-adi {
        font-size: 0.9rem;
    }
    
    .urun-fiyat {
        font-size: 0.85rem;
    }
    
    .urun-aciklama {
        font-size: 0.8rem;
    }
    
    /* Seçilen Bilgiler Mobil */
    .secilen-bilgiler {
        padding: 15px;
    }
    
    .secilen-bilgiler h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .secilen-bilgiler p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    /* Form Actions Mobil */
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hesaplayici-container {
        padding: 15px;
    }
    
    .hesaplayici-header h2 {
        font-size: 1.6rem;
    }
    
    .hesaplayici-header p {
        font-size: 0.95rem;
    }
    
    .daire-label {
        font-size: 1rem;
    }
    
    .daire-sayisi {
        font-size: 1.6rem;
    }
    
    .slider-labels {
        font-size: 0.75rem;
    }
    
    .ek-urunler-section h3 {
        font-size: 1.3rem;
    }
    
    .ek-urun-item {
        padding: 12px;
    }
    
    .ek-urun-adi {
        font-size: 0.95rem;
    }
    
    .ek-urun-fiyat {
        font-size: 0.85rem;
    }
    
    .final-tutar {
        font-size: 1.3rem;
    }
    
    .final-fiyat-content {
        min-width: auto;
        padding: 15px;
        width: 100%;
    }
    
    .btn {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 10px;
        font-size: 16px;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .radio-label {
        padding: 10px 8px;
    }
    
    .radio-text {
        font-size: 0.85rem;
    }
    
    .modal-ek-urunler {
        padding: 12px;
    }
    
    .modal-ek-urun-checkbox {
        padding: 10px;
    }
    
    .urun-adi {
        font-size: 0.85rem;
    }
    
    .urun-fiyat {
        font-size: 0.8rem;
    }
    
    .urun-aciklama {
        font-size: 0.75rem;
    }
    
    .secilen-bilgiler {
        padding: 12px;
    }
    
    .secilen-bilgiler h4 {
        font-size: 0.95rem;
    }
    
    .secilen-bilgiler p {
        font-size: 0.85rem;
    }
}
