/* assets/css/offer-modal.css */

.offer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.offer-modal.active {
    display: block;
}

.offer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.offer-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.offer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.offer-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.offer-modal-header h3 i {
    margin-right: 8px;
}

.offer-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.offer-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.offer-modal-body {
    padding: 24px;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

/* Listing Mini Card */
.listing-mini-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid #e9ecef;
}

.listing-mini-card img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.listing-mini-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.listing-mini-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.listing-mini-info .listing-price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-top: 8px;
}

/* Form Styles */
.offer-modal-body .form-group {
    margin-bottom: 20px;
}

.offer-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.offer-modal-body label .required {
    color: #dc3545;
}

.offer-modal-body input[type="number"],
.offer-modal-body select,
.offer-modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    color:#000;
}

.offer-modal-body input[type="number"]:focus,
.offer-modal-body select:focus,
.offer-modal-body textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    color:#000;
}

/* Input with currency/percent */
.input-with-currency,
.input-with-percent {
    position: relative;
}

.input-with-currency input,
.input-with-percent input {
    padding-right: 50px;
    color:#000;
}

.currency-symbol,
.percent-symbol {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
}

/* Info Box */
.offer-info-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    margin: 20px 0;
}

.offer-info-box i {
    color: #0066cc;
    font-size: 20px;
    flex-shrink: 0;
}

.offer-info-box strong {
    display: block;
    margin-bottom: 8px;
    color: #0066cc;
}

.offer-info-box ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.offer-info-box li {
    margin: 4px 0;
    font-size: 13px;
    color: #333;
}

/* Footer */
.offer-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    margin-top: 20px;
}

.offer-modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 18px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .offer-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .offer-modal-header {
        padding: 16px;
    }

    .offer-modal-body {
        padding: 16px;
    }

    .listing-mini-card {
        flex-direction: column;
        text-align: center;
    }

    .listing-mini-card img {
        margin: 0 auto;
    }

    .offer-modal-footer {
        flex-direction: column;
    }

    .offer-modal-footer button {
        width: 100%;
    }
}
