/* Delivery Form Styles */

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item.no-results {
    cursor: default;
    color: #999;
    text-align: center;
}

.autocomplete-item.no-results:hover {
    background-color: white;
}

.autocomplete-item .item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.autocomplete-item .item-description {
    font-size: 0.875rem;
    color: #666;
}

.input-loader {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #666;
}

/* Delivery & Payment Options Styles */
.delivery-methods,
.payment-methods {
    display: grid;
    gap: 12px;
}

.delivery-option,
.payment-option {
    display: block;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
    background: white;
}

.delivery-option:hover,
.payment-option:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.delivery-option input[type="radio"],
.payment-option input[type="radio"] {
    display: none;
}

.delivery-option input[type="radio"]:checked + .option-content,
.payment-option input[type="radio"]:checked + .option-content {
    border-left: 4px solid #3498db;
    padding-left: 12px;
}

.delivery-option input[type="radio"]:checked ~ *,
.payment-option input[type="radio"]:checked ~ * {
    color: #3498db;
}

.option-content {
    transition: all 0.2s;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.option-icon {
    font-size: 1.5rem;
}

.option-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.option-description {
    margin: 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.option-price {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #f0f7ff;
    color: #3498db;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Checkout Card */
.checkout-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}
