/* Inquiry Form Modal Styles */
.ifw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ifw-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.ifw-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.ifw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.ifw-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ifw-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ifw-inquiry-form {
    padding: 24px;
}

.ifw-form-group {
    margin-bottom: 18px;
}

.ifw-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.ifw-required {
    color: #e74c3c;
    margin-left: 2px;
}

.ifw-form-group input,
.ifw-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.ifw-form-group input:focus,
.ifw-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.ifw-form-group input.error,
.ifw-form-group textarea.error {
    border-color: #e74c3c;
}

.ifw-honeypot {
    position: absolute;
    left: -9999px;
}

.ifw-form-submit {
    margin-top: 24px;
}

.ifw-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ifw-submit-btn:hover {
    background-color: #00587a;
}

.ifw-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.ifw-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.ifw-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ifw-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .ifw-modal-content {
        width: 95%;
        margin: 10px;
    }

    .ifw-modal-header {
        padding: 15px 20px;
    }

    .ifw-inquiry-form {
        padding: 20px;
    }
}

/* Admin Settings Styles */
.ifw-sortable-list {
    margin-bottom: 15px;
}

.ifw-form-field-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
}

.ifw-field-handle {
    cursor: grab;
    color: #999;
}

.ifw-field-handle:active {
    cursor: grabbing;
}

.ifw-form-field-item input[type="text"],
.ifw-form-field-item select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.ifw-field-label {
    width: 120px;
}

.ifw-field-type {
    width: 100px;
}

.ifw-field-placeholder {
    width: 150px;
}

.ifw-remove-field {
    color: #a00;
}

.ifw-remove-field:hover {
    color: #dc3232;
}

.button-danger {
    color: #a00;
    border-color: #a00;
}

.button-danger:hover {
    color: #dc3232;
    border-color: #dc3232;
}

/* Status Colors in Admin */
.ifw-status-new {
    color: #0073aa;
    font-weight: 500;
}

.ifw-status-contacted {
    color: #46b450;
}

.ifw-status-spam {
    color: #dc3232;
}

/* Print styles for export */
@media print {
    .ifw-modal,
    .ifw-inquiry-btn {
        display: none !important;
    }
}