/* General Reset and RTL Support */
.delivery-pickup-container {
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #f5f5f5;
}

.delivery-pickup-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Section Titles */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: right;
}

/* Method Selection Buttons */
.method-selection-section {
    margin-bottom: 30px;
}

.method-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.method-btn {
    flex: 1;
    max-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.method-btn:hover {
    border-color: #ccc;
    background: #f9f9f9;
}

.method-btn.active {
    background: #000;
    color: white;
    border-color: #000;
}

.method-btn svg {
    width: 24px;
    height: 24px;
}

/* Address Search Box */
.address-section {
    margin-bottom: 25px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #666;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* City Selection Dropdown */
.city-section {
    margin-bottom: 25px;
}

.city-selector {
    position: relative;
}

.city-dropdown-btn {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    transition: border-color 0.3s ease;
    text-align: right;
}

.city-dropdown-btn:hover {
    border-color: #999;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.city-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.city-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: right;
}

.city-option:hover {
    background: #f5f5f5;
}

.city-option.selected {
    background: #f0f0f0;
    font-weight: 600;
}

/* Address Details Form */
.address-details {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-align: right;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #666;
}

/* Pickup Section */
.pickup-section {
    margin-top: 20px;
}

.store-section {
    margin-bottom: 20px;
}

.store-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.store-option:hover {
    background: #f9f9f9;
    border-color: #999;
}

.store-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.store-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.help-icon {
    color: #999;
    cursor: help;
}

/* Submit Button */
.submit-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #333;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Loading State */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .delivery-pickup-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .delivery-pickup-wrapper {
        padding: 20px;
    }
    
    .method-buttons {
        flex-direction: column;
    }
    
    .method-btn {
        max-width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delivery-section,
.pickup-section {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar Styling for Dropdown */
.city-dropdown::-webkit-scrollbar {
    width: 8px;
}

.city-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.city-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.city-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}
