/* Make an Offer - Premium Antique Style */

/* Button */
.mao-button {
    margin-top: 15px;
    width: 100%;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #8B7355 0%, #6B5344 100%) !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.mao-button:hover {
    background: linear-gradient(135deg, #6B5344 0%, #5A4636 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(107, 83, 68, 0.3);
}

/* Modal Overlay */
.mao-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.mao-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

/* Modal Content */
.mao-modal-content {
    position: relative;
    background: #FAFAFA;
    width: 90%;
    max-width: 480px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    z-index: 100000;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    border-top: 4px solid #8B7355;
}

/* Close Button */
.mao-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.mao-modal-close:hover {
    color: #333;
}

/* Modal Title */
.mao-modal-title {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 400;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Current Price Display */
.mao-current-price {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    margin-bottom: 25px;
    border-left: 3px solid #8B7355;
}

.mao-current-price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
}

.mao-current-price-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

/* Form */
.mao-form {
    margin: 0;
}

.mao-form-group {
    margin-bottom: 25px;
}

.mao-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.mao-form-group .required {
    color: #C0392B;
}

/* Discount Slider */
.mao-slider-container {
    padding: 15px 0;
}

.mao-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mao-slider-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.mao-discount-badge {
    background: #8B7355;
    color: #fff;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
}

.mao-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #8B7355 0%, #8B7355 20%, #e0e0e0 20%, #e0e0e0 100%);
    outline: none;
    cursor: pointer;
}

.mao-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8B7355;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.mao-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.mao-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8B7355;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Price Input */
.mao-price-input-container {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #fff;
    transition: border-color 0.3s;
}

.mao-price-input-container:focus-within {
    border-color: #8B7355;
}

.mao-currency {
    padding: 12px 15px;
    background: #f5f5f5;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    border-right: 1px solid #ddd;
}

.mao-price-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    background: transparent;
    outline: none;
}

/* Text Input */
.mao-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.mao-input:focus {
    outline: none;
    border-color: #8B7355;
}

.mao-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Contact Methods - Checkboxes Style */
.mao-contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.mao-contact-option {
    position: relative;
}

.mao-contact-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.mao-contact-option label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #666;
    margin: 0;
}

.mao-contact-option input:checked + label {
    border-color: #8B7355;
    background: #f9f7f5;
    color: #8B7355;
}

.mao-contact-option label:hover {
    border-color: #8B7355;
}

.mao-contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    opacity: 0.7;
}

.mao-contact-option input:checked + label .mao-contact-icon {
    opacity: 1;
}

/* Error Messages */
.mao-error {
    display: none;
    color: #C0392B;
    font-size: 12px;
    margin-top: 5px;
}

/* Submit Button */
.mao-form-actions {
    margin-top: 30px;
}

.mao-submit {
    width: 100%;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #8B7355 0%, #6B5344 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mao-submit:hover {
    background: linear-gradient(135deg, #6B5344 0%, #5A4636 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(107, 83, 68, 0.3);
}

.mao-submit:disabled,
.mao-submit.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message */
.mao-message {
    display: none;
    margin-top: 25px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.mao-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 3px solid #2E7D32;
}

.mao-message.error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 3px solid #C62828;
}

/* Body class when modal open */
body.mao-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .mao-modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 25px 20px;
        max-height: calc(100vh - 40px);
    }

    .mao-modal-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .mao-current-price-value {
        font-size: 24px;
    }

    .mao-contact-methods {
        flex-direction: column;
    }

    .mao-contact-option label {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Scrollbar styling */
.mao-modal-content::-webkit-scrollbar {
    width: 6px;
}

.mao-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mao-modal-content::-webkit-scrollbar-thumb {
    background: #8B7355;
    border-radius: 3px;
}

.mao-modal-content::-webkit-scrollbar-thumb:hover {
    background: #6B5344;
}
