/* KargoEvi Costmac Benzeri Tasarım */
* {
    box-sizing: border-box;
}

.kargoevi-quick-price-widget {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Avenir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #374151;
    line-height: 1.6;
}

/* Costmac Search Select Styling */
.kargoevi-search-select {
    position: relative;
}

.kargoevi-search-select input {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
}

.kargoevi-search-select input:focus {
    border-color: #DC2626;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.kargoevi-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #DC2626;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.kargoevi-dropdown.show {
    display: block;
}

.kargoevi-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
}

.kargoevi-dropdown-item:hover {
    background: #F9FAFB;
}

.kargoevi-dropdown-item.active {
    background: #EF4444 !important;
    color: white !important;
}

.kargoevi-dropdown-item.no-results {
    color: #9CA3AF;
    font-style: italic;
    cursor: default;
}

.kargoevi-dropdown-item.no-results:hover {
    background: transparent !important;
}

.kargoevi-dropdown-item strong {
    color: inherit;
    font-weight: 600;
}

/* Form Elements */
select, input[type="number"], input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus, input:focus, textarea:focus {
    border-color: #DC2626;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Buttons */
button {
    transition: all 0.2s ease;
    font-family: inherit;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

/* Tab Buttons */
#parcelsTab, #documentsTab {
    transition: all 0.3s ease;
}

#parcelsTab:hover, #documentsTab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Grid Responsiveness */
@media (max-width: 1024px) {
    #kargoEviPaketForm {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 768px) {
    .kargoevi-quick-price-widget [style*="padding: 40px"] {
        padding: 20px !important;
    }
    
    #kargoEviPaketForm {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    #kargoEviDocumentsForm > div {
        grid-template-columns: 1fr !important;
    }
    
    .kargoevi-quick-price-widget h1 {
        font-size: 2em !important;
    }
}

@media (max-width: 480px) {
    #kargoEviPaketForm {
        grid-template-columns: 1fr !important;
    }
    
    .kargoevi-quick-price-widget [style*="flex"] {
        flex-direction: column !important;
    }
    
    .kargoevi-quick-price-widget [style*="gap: 15px"] {
        gap: 10px !important;
    }
}

/* Loading Animation */
.kargoevi-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #DC2626;
    border-radius: 50%;
    animation: kargoevi-spin 1s linear infinite;
}

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

/* Price Cards */
.kargoevi-price-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.kargoevi-price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Alert Styles */
.kargoevi-alert {
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.kargoevi-alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.kargoevi-alert-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.kargoevi-alert-warning {
    background: #FFFBEB;
    color: #D97706;
    border: 1px solid #FED7AA;
}

/* Scrollbar Styling */
.kargoevi-dropdown::-webkit-scrollbar {
    width: 6px;
}

.kargoevi-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.kargoevi-dropdown::-webkit-scrollbar-thumb {
    background: #DC2626;
    border-radius: 3px;
}

.kargoevi-dropdown::-webkit-scrollbar-thumb:hover {
    background: #B91C1C;
}